Fix possible powerretain failure

Fix possible powerretain failure (#8219)
This commit is contained in:
Theo Arends 2020-04-18 16:30:36 +02:00
parent b36ce0d048
commit 9d838c001c
1 changed files with 3 additions and 0 deletions

View File

@ -1028,6 +1028,9 @@ void CmndPowerRetain(void)
}
}
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
}