From 3e3abdb6138e5b95ef50e7eedab663394558a8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 4 Sep 2017 17:14:24 +0200 Subject: [PATCH] Wrong messages when upgrading from web UI --- code/espurna/web.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/web.ino b/code/espurna/web.ino index dd5639dd..eed32a45 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -1081,7 +1081,7 @@ int _onCertificate(void * arg, const char *filename, uint8_t **buf) { void _onUpgrade(AsyncWebServerRequest *request) { char buffer[10]; - if (Update.hasError()) { + if (!Update.hasError()) { sprintf_P(buffer, PSTR("OK")); } else { sprintf_P(buffer, PSTR("ERROR %d"), Update.getError());