Merge pull request #4405 from opentx/3djc/X7-sw-warning-v2
X7 switch warning setup
This commit is contained in:
@@ -515,11 +515,13 @@ void menuModelSetup(event_t event)
|
|||||||
states >>= 1;
|
states >>= 1;
|
||||||
}
|
}
|
||||||
if (line && (menuHorizontalPosition == i)) {
|
if (line && (menuHorizontalPosition == i)) {
|
||||||
attr = BLINK;
|
attr = BLINK | INVERS;
|
||||||
if (swactive)
|
|
||||||
attr |= INVERS;
|
|
||||||
}
|
}
|
||||||
|
#if defined(CPUARM)
|
||||||
|
lcdDrawChar(MODEL_SETUP_2ND_COLUMN+i*FW, y, (swactive) ? c : '-', attr);
|
||||||
|
#else
|
||||||
lcdDrawChar(MODEL_SETUP_2ND_COLUMN+i*FW, y, (swactive || (attr & BLINK)) ? c : '-', attr);
|
lcdDrawChar(MODEL_SETUP_2ND_COLUMN+i*FW, y, (swactive || (attr & BLINK)) ? c : '-', attr);
|
||||||
|
#endif
|
||||||
#if !defined(CPUM64)
|
#if !defined(CPUM64)
|
||||||
lcdDrawText(MODEL_SETUP_2ND_COLUMN+(NUM_SWITCHES*FW), y, PSTR("<]"), (menuHorizontalPosition == NUM_SWITCHES-1 && !NO_HIGHLIGHT()) ? line : 0);
|
lcdDrawText(MODEL_SETUP_2ND_COLUMN+(NUM_SWITCHES*FW), y, PSTR("<]"), (menuHorizontalPosition == NUM_SWITCHES-1 && !NO_HIGHLIGHT()) ? line : 0);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user