From 81c832557469fb2f9145d57d4277384e457a78a9 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Sun, 2 May 2021 06:51:33 +0200 Subject: [PATCH] Exclude spiffs upload on ESP8266 --- src/sys/svc/hasp_http.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sys/svc/hasp_http.cpp b/src/sys/svc/hasp_http.cpp index 2c4c21aa..35181dc0 100644 --- a/src/sys/svc/hasp_http.cpp +++ b/src/sys/svc/hasp_http.cpp @@ -903,12 +903,14 @@ void webHandleFirmwareUpload() size_t size = 0; if(command == U_FLASH) { size = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000; +#ifdef ESP32 } else if(command == U_SPIFFS) { size = UPDATE_SIZE_UNKNOWN; +#endif } // if(!Update.begin(UPDATE_SIZE_UNKNOWN)) { // start with max available size - const char label[] = "spiffs"; - if(!Update.begin(size, command, -1, 0U, (const char*)label)) { // start with max available size + // const char label[] = "spiffs"; + if(!Update.begin(size, command, -1, 0U)) { // start with max available size webUpdatePrintError(); } break;