From 985fc72c981d10dee041b3bfd0fbaacf4d62da03 Mon Sep 17 00:00:00 2001 From: Polprzewodnikowy Date: Sat, 8 Oct 2022 19:48:56 +0200 Subject: [PATCH] turn off led when changing between error/act modes --- sw/controller/src/led.c | 2 ++ 1 file changed, 2 insertions(+) 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; }