Fix switch handling on X9E, cleanup/harmonize code for all revisions

This commit is contained in:
Andre Bernet
2015-03-28 00:51:39 +04:00
parent 2325b0ea50
commit 95be0729cf
17 changed files with 128 additions and 143 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ int8_t checkIncDecMovedSwitch(int8_t val)
div_t info = switchInfo(swtch);
if (IS_TOGGLE(info.quot)) {
if (info.rem != 0) {
val = (val == swtch ? swtch+2 : swtch);
val = (val == swtch ? swtch-2 : swtch);
}
}
else {