[Taranis] I had a Pot warning on Pot3 even if configured as None

This commit is contained in:
bsongis
2015-07-09 22:30:40 +02:00
parent 6ab60d2e84
commit 9133558bed
+2 -2
View File
@@ -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))) {