fix false executing of restart vector

This commit is contained in:
gemu2015 2021-03-30 08:37:08 +02:00
parent 437cb5428b
commit 43b9f2bafa
1 changed files with 2 additions and 0 deletions

View File

@ -7872,6 +7872,8 @@ bool Xdrv10(uint8_t function)
Webserver->on("/exs", HTTP_POST,[]() { Webserver->sendHeader("Location","/exs");Webserver->send(303);}, script_upload_start); Webserver->on("/exs", HTTP_POST,[]() { Webserver->sendHeader("Location","/exs");Webserver->send(303);}, script_upload_start);
Webserver->on("/exs", HTTP_GET, ScriptExecuteUploadSuccess); Webserver->on("/exs", HTTP_GET, ScriptExecuteUploadSuccess);
#endif // USE_WEBSERVER #endif // USE_WEBSERVER
break;
case FUNC_SAVE_BEFORE_RESTART: case FUNC_SAVE_BEFORE_RESTART:
if (bitRead(Settings.rule_enabled, 0)) { if (bitRead(Settings.rule_enabled, 0)) {
Run_Scripter(">R", 2, 0); Run_Scripter(">R", 2, 0);