mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-25 17:25:10 +03:00
[Horus] Red LED on error. Blue LED otherwise
This commit is contained in:
parent
c5f3010295
commit
0eb71cb4f2
4 changed files with 27 additions and 39 deletions
|
@ -822,9 +822,11 @@ void checkSwitches()
|
|||
startupWarningState = STARTUP_WARNING_SWITCHES+1;
|
||||
last_bad_switches = 0xff;
|
||||
#endif
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
LED_ERROR_BEGIN();
|
||||
|
||||
// first - display warning
|
||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||
if ((last_bad_switches != switches_states) || (last_bad_pots != bad_pots)) {
|
||||
|
@ -935,7 +937,7 @@ void checkSwitches()
|
|||
last_bad_switches = 0xff;
|
||||
}
|
||||
#else
|
||||
if (pwrCheck()==e_power_off || keyDown()) return;
|
||||
if (pwrCheck()==e_power_off || keyDown()) break;
|
||||
|
||||
doLoopCommonActions();
|
||||
|
||||
|
@ -943,7 +945,9 @@ void checkSwitches()
|
|||
|
||||
SIMU_SLEEP(1);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
LED_ERROR_END();
|
||||
}
|
||||
#endif // GUI
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue