1
0
Fork 0
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:
Bertrand Songis 2016-01-15 12:42:37 +01:00
parent 1771a47637
commit b6759d5434
2 changed files with 12 additions and 10 deletions

View file

@ -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;
}