[Taranis] I had a Pot warning on Pot3 even if configured as None
This commit is contained in:
@@ -643,7 +643,7 @@ void checkSwitches()
|
||||
evalFlightModeMixes(e_perout_mode_normal, 0);
|
||||
bad_pots = 0;
|
||||
for (int i=0; i<NUM_POTS; i++) {
|
||||
if (!IS_POT_AVAILABLE(i)) {
|
||||
if (!IS_POT_AVAILABLE(POT1+i)) {
|
||||
continue;
|
||||
}
|
||||
if (!(g_model.potsWarnEnabled & (1 << i)) && (abs(g_model.potsWarnPosition[i] - GET_LOWRES_POT_POSITION(i)) > 1)) {
|
||||
@@ -704,7 +704,7 @@ void checkSwitches()
|
||||
x = 60;
|
||||
}
|
||||
for (int i=0; i<NUM_POTS; i++) {
|
||||
if (!IS_POT_AVAILABLE(i)) {
|
||||
if (!IS_POT_AVAILABLE(POT1+i)) {
|
||||
continue;
|
||||
}
|
||||
if (!(g_model.potsWarnEnabled & (1 << i))) {
|
||||
|
||||
Reference in New Issue
Block a user