mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-25 17:25:10 +03:00
[Horus] Compilation fix
This commit is contained in:
parent
1771a47637
commit
b6759d5434
2 changed files with 12 additions and 10 deletions
|
@ -774,7 +774,7 @@ void checkSwitches()
|
|||
#if defined(COLORLCD)
|
||||
for (int i=0; i<NUM_SWITCHES; i++) {
|
||||
if (SWITCH_WARNING_ALLOWED(i)) {
|
||||
unsigned int state = ((g_model.switchWarningState >> (3*i)) & 0x07);
|
||||
unsigned int state = ((states >> (3*i)) & 0x07);
|
||||
if (state && state-1 != ((switches_states >> (i*2)) & 0x03)) {
|
||||
warn = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue