mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 15:27:17 +00:00
initialize shutters when interlock is changed
This commit is contained in:
parent
8ffae03ff7
commit
80773f74c7
@ -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