AutoSwitch adjustment for TRN

This commit is contained in:
bsongis
2012-05-08 12:05:13 +00:00
parent c8e8a4aba7
commit a47cebfdd5
+1
View File
@@ -618,6 +618,7 @@ int8_t getMovedSwitch()
} }
bool next = __getSwitch(i); bool next = __getSwitch(i);
if (prev != next) { if (prev != next) {
if (i!=MAX_PSWITCH || next==true)
result = i; result = i;
if (mask) if (mask)
switches_states ^= mask; switches_states ^= mask;