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());