1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-21 15:25:17 +03:00

[Taranis X9E] Shift in Pots Warn when POT4 is None

This commit is contained in:
bsongis 2015-03-09 20:08:49 +01:00
parent 7451a8f7cb
commit 22582cefc7

View file

@ -499,25 +499,25 @@ void menuModelSetup(uint8_t event)
for (int i=0; i<NUM_POTS; ++i) { for (int i=0; i<NUM_POTS; ++i) {
if (i<NUM_XPOTS && !IS_POT_AVAILABLE(POT1+i)) { if (i<NUM_XPOTS && !IS_POT_AVAILABLE(POT1+i)) {
if (attr && (m_posHorz==i+1)) REPEAT_LAST_CURSOR_MOVE(); if (attr && (m_posHorz==i+1)) REPEAT_LAST_CURSOR_MOVE();
continue;
}
LcdFlags flags = ((m_posHorz==i+1) && attr) ? BLINK : 0;
if ((!attr || m_posHorz >= 0) && !(g_model.potsWarnEnabled & (1 << i))) {
flags |= INVERS;
}
lcd_putsiAtt(x, y, STR_VSRCRAW, NUM_STICKS+1+i, flags);
#if defined(REV9E)
if (i == NUM_XPOTS-1) {
y += FH;
x = MODEL_SETUP_2ND_COLUMN+27;
} }
else { else {
x += (2*FW+7); #if defined(REV9E)
} if (i == NUM_XPOTS) {
#else y += FH;
x += (2*FW+3); x = MODEL_SETUP_2ND_COLUMN+27;
}
#endif #endif
LcdFlags flags = ((m_posHorz==i+1) && attr) ? BLINK : 0;
if ((!attr || m_posHorz >= 0) && !(g_model.potsWarnEnabled & (1 << i))) {
flags |= INVERS;
}
lcd_putsiAtt(x, y, STR_VSRCRAW, NUM_STICKS+1+i, flags);
#if defined(REV9E)
x += (2*FW+7);
#else
x += (2*FW+3);
#endif
}
} }
} }
if (attr && m_posHorz < 0) { if (attr && m_posHorz < 0) {