mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-13 08:56:38 +02:00
Patch from home...
This commit is contained in:
parent
7a941c8882
commit
868012931f
11 changed files with 212 additions and 225 deletions
|
@ -396,6 +396,10 @@ void web::showWebApi(AsyncWebServerRequest *request) {
|
|||
iv->devControlCmd = CleanState_LockAndAlarm;
|
||||
iv->devControlRequest = true; // queue it in the request loop
|
||||
}
|
||||
if (response["cmd"] == (uint8_t)Restart) {
|
||||
iv->devControlCmd = Restart;
|
||||
iv->devControlRequest = true; // queue it in the request loop
|
||||
}
|
||||
}
|
||||
}
|
||||
request->send(200, "text/json", "{success:true}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue