Merge pull request #7494 from to-scho/hotfix/shuttermode_interlock_update

initialize shutters when interlock is changed
This commit is contained in:
Theo Arends 2020-01-12 15:53:26 +01:00 committed by GitHub
commit 50717849bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1394,6 +1394,11 @@ void CmndInterlock(void)
SetDevicePower(power, SRC_IGNORE); // Remove multiple relays if set SetDevicePower(power, SRC_IGNORE); // Remove multiple relays if set
} }
} }
#ifdef USE_SHUTTER
if (Settings.flag3.shutter_mode) { // SetOption80 - Enable shutter support
ShutterInit(); // to update shutter mode
}
#endif // USE_SHUTTER
} }
Response_P(PSTR("{\"" D_CMND_INTERLOCK "\":\"%s\",\"" D_JSON_GROUPS "\":\""), GetStateText(Settings.flag.interlock)); Response_P(PSTR("{\"" D_CMND_INTERLOCK "\":\"%s\",\"" D_JSON_GROUPS "\":\""), GetStateText(Settings.flag.interlock));
uint32_t anygroup = 0; uint32_t anygroup = 0;