Reset pot type to Pot if max no of steps exceeded to avoid stray switch entry

This commit is contained in:
Andre Bernet
2014-02-01 10:13:18 +01:00
parent a3b7852467
commit 7d5e37d5fa
+3
View File
@@ -1314,6 +1314,9 @@ void menuCommonCalib(uint8_t event)
if (count < POTS_POS_COUNT) {
reusableBuffer.calib.xpotsCalib[idx].steps[count] = position;
}
else {
g_eeGeneral.potsType &= !(1<<idx);
}
reusableBuffer.calib.xpotsCalib[idx].stepsCount += 1;
}
}