adding ota error

This commit is contained in:
tablatronix
2021-01-09 11:26:05 -06:00
parent 28a0dcbf13
commit 60c1b8617d
+3
View File
@@ -3495,7 +3495,9 @@ void WiFiManager::handleUpdating(){
if (!Update.begin(maxSketchSpace)) { // start with max available size
Update.printError(Serial); // size error
DEBUG_WM(F("[OTA] Update ERROR"), "Not enough space");
error = true;
Update.end(); // Not sure the best way to abort, I think client will keep sending..
}
}
// UPLOAD WRITE
@@ -3538,6 +3540,7 @@ void WiFiManager::handleUpdateDone() {
if (Update.hasError()) {
page += FPSTR(HTTP_UPDATE_FAIL);
page += "OTA Error: " + (String)Update.getError();
DEBUG_WM(F("[OTA] update failed"));
}
else {