mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
Merge branch 'master' of https://github.com/tzapu/WiFiManager
This commit is contained in:
@@ -3507,7 +3507,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
|
||||
@@ -3550,6 +3552,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 {
|
||||
|
||||
Reference in New Issue
Block a user