mirror of https://github.com/arendst/Tasmota.git
Extent command Knx_Enabled with KNX restart functionality (#22242)
This commit is contained in:
parent
4ffc53b465
commit
789bbb8b97
|
@ -1422,6 +1422,9 @@ void CmndKnxEnabled(void)
|
||||||
{
|
{
|
||||||
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 1)) {
|
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 1)) {
|
||||||
Settings->flag.knx_enabled = XdrvMailbox.payload;
|
Settings->flag.knx_enabled = XdrvMailbox.payload;
|
||||||
|
if (!Settings->flag.knx_enabled) {
|
||||||
|
Knx.started = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ResponseCmndChar (GetStateText(Settings->flag.knx_enabled) );
|
ResponseCmndChar (GetStateText(Settings->flag.knx_enabled) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue