3pos mid pos delay only for 3pos switches

This commit is contained in:
Andre Bernet
2015-04-20 20:52:51 +04:00
parent 74b546a9fa
commit 38452ca4d0
+1 -1
View File
@@ -444,7 +444,7 @@ bool getSwitch(int8_t swtch)
}
else if (cs_idx <= SWSRC_LAST_SWITCH) {
#if defined(PCBTARANIS)
if (flags & GETSWITCH_MIDPOS_DELAY)
if ((flags & GETSWITCH_MIDPOS_DELAY) && IS_3POS(cs_idx))
result = SWITCH_POSITION(cs_idx-SWSRC_FIRST_SWITCH);
else
#endif