mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Allow payload for reboot
This commit is contained in:
parent
1e1db4c08c
commit
ef57a6ec41
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user