Bug found in Pots Warning (Auto mode)

This commit is contained in:
bsongis
2014-06-02 11:01:21 +02:00
parent 207fc721fa
commit 0ea3daa4c4
4 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -2460,9 +2460,9 @@ void opentxClose()
#if defined(PCBTARANIS)
if ((g_model.nPotsToWarn >> 6) == 2) {
for (uint8_t i=0; i<NUM_POTS ; i++)
for (uint8_t i=0; i<NUM_POTS; i++)
if (!(g_model.nPotsToWarn & (1 << i)))
g_model.potPosition[i] = getValue(MIXSRC_FIRST_POT+i) >> 3;
SAVE_POT_POSITION(i);
eeDirty(EE_MODEL);
}
#endif