[SKY9X/9XR-PRO] Shift in Switches display

This commit is contained in:
Bertrand Songis
2017-02-12 22:22:58 +01:00
parent d90b1e0640
commit 5d2220c842
14 changed files with 53 additions and 6 deletions
+7 -1
View File
@@ -275,7 +275,7 @@ bool isSwitchAvailable(int swtch, SwitchContext context)
#if defined(PCBSKY9X)
if (swtch >= SWSRC_FIRST_SWITCH && swtch <= SWSRC_LAST_SWITCH) {
(void)negative;
UNUSED(negative);
return true;
}
#else
@@ -310,6 +310,12 @@ bool isSwitchAvailable(int swtch, SwitchContext context)
}
#endif
#if defined(PCBSKY9X) && defined(REVX)
if (swtch == SWSRC_REa) {
return false;
}
#endif
if (swtch >= SWSRC_FIRST_LOGICAL_SWITCH && swtch <= SWSRC_LAST_LOGICAL_SWITCH) {
if (context == GeneralCustomFunctionsContext) {
return false;