Fix syslog message on update

This commit is contained in:
Łukasz Nidecki 2021-08-21 22:00:06 +02:00
parent b279a3c198
commit c0eb892a7c
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ void handle_saveDeviceCfg(){
server.on("/save_device_cfg", handle_saveDeviceCfg);
server.on("/restore", handle_Restore);
server.on("/update", HTTP_POST, []() {
syslog_log(LOG_WARNING, String("Update finished. Status: ") + (Update.hasError() ? "Ok" : "Error"));
syslog_log(LOG_WARNING, String("Update finished. Status: ") + (!Update.hasError() ? "Ok" : "Error"));
server.sendHeader("Connection", "close");
server.send(200, "text/plain", (Update.hasError()) ? "FAIL" : "OK");
delay(500);