Reorder pot warning modes to simplify potential stock board implementation

Might be good to make an enum too.
This commit is contained in:
Andre Bernet
2013-12-04 12:04:52 +01:00
parent 05fca48115
commit 9c5e8881fc
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -4211,7 +4211,7 @@ void opentxClose()
#endif
#if defined(PCBTARANIS)
if((g_model.nPotsToWarn >> 6) == 1) {
if((g_model.nPotsToWarn >> 6) == 2) {
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;