diff options
Diffstat (limited to 'board/lindar')
-rw-r--r-- | board/lindar/led.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/board/lindar/led.c b/board/lindar/led.c index db685faede..6d602d5c4e 100644 --- a/board/lindar/led.c +++ b/board/lindar/led.c @@ -29,11 +29,12 @@ #define LED_OFF_LVL 1 #define LED_ON_LVL 0 -const int led_charge_lvl_1 = 5; +__override const int led_charge_lvl_1 = 5; -const int led_charge_lvl_2 = 97; +__override const int led_charge_lvl_2 = 97; -struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { +__override struct led_descriptor + led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = { [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_RED, LED_INDEFINITE} }, [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} }, [STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_GREEN, LED_INDEFINITE} }, @@ -72,7 +73,7 @@ __override void led_set_color_power(enum ec_led_colors color) gpio_set_level(GPIO_LED_3_L, LED_OFF_LVL); } -void led_set_color_battery(enum ec_led_colors color) +__override void led_set_color_battery(enum ec_led_colors color) { switch (color) { case EC_LED_COLOR_AMBER: |