mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Merge pull request #7494 from to-scho/hotfix/shuttermode_interlock_update
initialize shutters when interlock is changed
This commit is contained in:
commit
50717849bb
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user