mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Fix possible powerretain failure
Fix possible powerretain failure (#8219)
This commit is contained in:
parent
b36ce0d048
commit
9d838c001c
@ -1028,6 +1028,9 @@ void CmndPowerRetain(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Settings.flag.mqtt_power_retain = XdrvMailbox.payload; // CMND_POWERRETAIN
|
Settings.flag.mqtt_power_retain = XdrvMailbox.payload; // CMND_POWERRETAIN
|
||||||
|
if (Settings.flag.mqtt_power_retain) {
|
||||||
|
Settings.flag4.only_json_message = 0; // SetOption90 - Disable non-json MQTT response
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ResponseCmndStateText(Settings.flag.mqtt_power_retain); // CMND_POWERRETAIN
|
ResponseCmndStateText(Settings.flag.mqtt_power_retain); // CMND_POWERRETAIN
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user