AutoSwitch adjustment for TRN
This commit is contained in:
+2
-1
@@ -618,7 +618,8 @@ int8_t getMovedSwitch()
|
|||||||
}
|
}
|
||||||
bool next = __getSwitch(i);
|
bool next = __getSwitch(i);
|
||||||
if (prev != next) {
|
if (prev != next) {
|
||||||
result = i;
|
if (i!=MAX_PSWITCH || next==true)
|
||||||
|
result = i;
|
||||||
if (mask)
|
if (mask)
|
||||||
switches_states ^= mask;
|
switches_states ^= mask;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user