mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-21 21:49:15 +01:00
turn off led when changing between error/act modes
This commit is contained in:
parent
f4d3b68a5c
commit
985fc72c98
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user