diff --git a/sw/controller/src/led.c b/sw/controller/src/led.c index 93f56c6..73178d3 100644 --- a/sw/controller/src/led.c +++ b/sw/controller/src/led.c @@ -28,11 +28,13 @@ static void led_task_resume (void) { static void led_update_error_mode (void) { if (error_mode) { if (!(cic_error || rtc_error)) { + hw_gpio_reset(GPIO_ID_LED); error_mode = false; act_timer = 0; } } else { if (cic_error || rtc_error) { + hw_gpio_reset(GPIO_ID_LED); error_mode = true; error_timer = 0; }