Switch warning fix for Horus (#3516)

This commit is contained in:
Damjan Adamic
2016-05-20 23:05:32 +02:00
committed by Bertrand Songis
parent f3d6dfea94
commit 0fad67a8ea
4 changed files with 25 additions and 16 deletions
+7
View File
@@ -357,6 +357,13 @@ bool isSwitchAvailableInMixes(int swtch)
return isSwitchAvailable(swtch, MixesContext);
}
#if defined(COLORLCD)
bool isSwitchWarningStateAvailable(int state)
{
return (state != 2); // two pos switch - middle state not available
}
#endif // #if defined(COLORLCD)
bool isSwitchAvailableInTimers(int swtch)
{
if (swtch >= 0) {