AutoSwitch corrections

This commit is contained in:
bsongis
2012-05-06 22:13:25 +00:00
parent 99a8e85bed
commit 4d953a8452
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -610,7 +610,7 @@ int8_t getMovedSwitch()
prev = (switches_states & mask);
}
else if (i <= 6) {
prev = ((switches_states & 0b00011000) == ((i-3) << 3));
prev = ((switches_states & 0x18) == ((i-3) << 3));
}
else {
mask = (1<<(i-2));
@@ -622,7 +622,7 @@ int8_t getMovedSwitch()
if (mask)
switches_states ^= mask;
else
switches_states = (switches_states & 0b11100111) | ((i-3) << 3);
switches_states = (switches_states & 0xE7) | ((i-3) << 3);
}
}