diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 853c7d7b8..b244ca89b 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -2196,6 +2196,7 @@ void checkSwitches() perOut(e_perout_mode_inactive_phase, 0); uint8_t potMode = g_model.nPotsToWarn >> 6; + uint8_t bad_pots = 0, last_bad_pots = 0xff; if(potMode) for (uint8_t i=0; i> 3)) > 2)) @@ -2210,9 +2211,9 @@ void checkSwitches() if(!warn) return; // first - display warning -// if (last_bad_switches != switches_states) { - MESSAGE(STR_SWITCHWARN, NULL, STR_PRESSANYKEYTOSKIP, last_bad_switches == 0xff ? AU_SWITCH_ALERT : AU_NONE); #if defined(PCBTARANIS) + if ((last_bad_switches != switches_states) || (last_bad_pots != bad_pots)) { + MESSAGE(STR_SWITCHWARN, NULL, STR_PRESSANYKEYTOSKIP, ((last_bad_switches == 0xff) || (last_bad_pots == 0xff)) ? AU_SWITCH_ALERT : AU_NONE); for (uint8_t i=0; i> 3)) > 2) { lcd_putc(60+i*(5*FW)+2*FW+2, 6*FH-2, g_model.potPosition[i] > (getValue(MIXSRC_FIRST_POT+i) >> 3) ? 127 : 126); flags = INVERS; + bad_pots |= (1<