mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Exclude spiffs upload on ESP8266
This commit is contained in:
parent
adffef91eb
commit
81c8325574
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user