Fix SafeBoot GUI upload regression

This commit is contained in:
Theo Arends 2022-05-09 11:34:52 +02:00
parent fc21e1cc16
commit e92230d7cb
1 changed files with 1 additions and 1 deletions

View File

@ -2786,7 +2786,7 @@ void HandleUploadLoop(void) {
}
// upload.buf[2] = 3; // Force DOUT - ESP8285
}
uint32_t maxSketchSpace = (ESP_getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
uint32_t maxSketchSpace = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
if (!Update.begin(maxSketchSpace)) { //start with max available size
Web.upload_error = 2; // Not enough space
return;