Fix Alexa Hue shutter detection

Fix Alexa Hue shutter detection (#11517)
This commit is contained in:
Theo Arends 2021-04-03 14:14:01 +02:00
parent 34a41ebbc9
commit 070a3a5ca7
1 changed files with 2 additions and 2 deletions

View File

@ -529,8 +529,8 @@ void ShutterUpdatePosition(void)
} }
} }
bool ShutterState(uint32_t device) bool ShutterState(uint32_t device) {
{ if (device > 4) { return false; }
device--; device--;
device &= 3; device &= 3;
return (Settings.flag3.shutter_mode && // SetOption80 - Enable shutter support return (Settings.flag3.shutter_mode && // SetOption80 - Enable shutter support