Compilation fixes on all boards

This commit is contained in:
Bertrand Songis
2019-03-15 12:24:22 +01:00
parent 90959c8817
commit cb6ee5e0b0
7 changed files with 25 additions and 21 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ getvalue_t getValue(mixsrc_t i)
else if ((i >= MIXSRC_FIRST_SWITCH) && (i <= MIXSRC_LAST_SWITCH)) {
mixsrc_t sw = i-MIXSRC_FIRST_SWITCH;
if (SWITCH_EXISTS(sw)) {
return (switchState(3*sw) ? -1024 : (switchState(3*sw+1) ? 0 : 1024));
return (switchState(3*sw) ? -1024 : (IS_CONFIG_3POS(sw) && switchState(3*sw+1) ? 0 : 1024));
}
else {
return 0;