mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 06:45:10 +03:00
[Taranis X9E] Shift in Pots Warn when POT4 is None
This commit is contained in:
parent
7451a8f7cb
commit
22582cefc7
1 changed files with 16 additions and 16 deletions
|
@ -499,27 +499,27 @@ 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;
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
#if defined(REV9E)
|
||||||
|
if (i == NUM_XPOTS) {
|
||||||
|
y += FH;
|
||||||
|
x = MODEL_SETUP_2ND_COLUMN+27;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
LcdFlags flags = ((m_posHorz==i+1) && attr) ? BLINK : 0;
|
LcdFlags flags = ((m_posHorz==i+1) && attr) ? BLINK : 0;
|
||||||
if ((!attr || m_posHorz >= 0) && !(g_model.potsWarnEnabled & (1 << i))) {
|
if ((!attr || m_posHorz >= 0) && !(g_model.potsWarnEnabled & (1 << i))) {
|
||||||
flags |= INVERS;
|
flags |= INVERS;
|
||||||
}
|
}
|
||||||
lcd_putsiAtt(x, y, STR_VSRCRAW, NUM_STICKS+1+i, flags);
|
lcd_putsiAtt(x, y, STR_VSRCRAW, NUM_STICKS+1+i, flags);
|
||||||
|
|
||||||
#if defined(REV9E)
|
#if defined(REV9E)
|
||||||
if (i == NUM_XPOTS-1) {
|
|
||||||
y += FH;
|
|
||||||
x = MODEL_SETUP_2ND_COLUMN+27;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
x += (2*FW+7);
|
x += (2*FW+7);
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
x += (2*FW+3);
|
x += (2*FW+3);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (attr && m_posHorz < 0) {
|
if (attr && m_posHorz < 0) {
|
||||||
#if defined(REV9E)
|
#if defined(REV9E)
|
||||||
drawFilledRect(MODEL_SETUP_2ND_COLUMN-1, y-FH-1, LCD_W-MODEL_SETUP_2ND_COLUMN-MENUS_SCROLLBAR_WIDTH+1, 2*FH+1);
|
drawFilledRect(MODEL_SETUP_2ND_COLUMN-1, y-FH-1, LCD_W-MODEL_SETUP_2ND_COLUMN-MENUS_SCROLLBAR_WIDTH+1, 2*FH+1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue