Allow payload for reboot

This commit is contained in:
fvanroie 2020-03-30 15:53:23 +02:00
parent 1e1db4c08c
commit ef57a6ec41

View File

@ -114,7 +114,7 @@ void dispatchAttribute(String strTopic, const char * payload)
} else if(strTopic == F("light")) {
dispatchBacklight(payload);
} else if(cmnd == F("reboot") || cmnd == F("restart")) {
} else if(strTopic == F("reboot") || strTopic == F("restart")) {
dispatchReboot(true);
} else if(strTopic == F("clearpage")) {
@ -281,8 +281,6 @@ void dispatchReboot(bool saveConfig)
debugStop();
delay(250);
wifiStop();
// debugPrintln(F("STOP: Properly Rebooting the MCU now!"));
// debugPrintln(F("-------------------------------------"));
Log.notice(F("STOP: Properly Rebooting the MCU now!"));
Log.verbose(F("-------------------------------------"));
ESP.restart();