mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +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;
|
size_t size = 0;
|
||||||
if(command == U_FLASH) {
|
if(command == U_FLASH) {
|
||||||
size = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
|
size = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
|
||||||
|
#ifdef ESP32
|
||||||
} else if(command == U_SPIFFS) {
|
} else if(command == U_SPIFFS) {
|
||||||
size = UPDATE_SIZE_UNKNOWN;
|
size = UPDATE_SIZE_UNKNOWN;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
// if(!Update.begin(UPDATE_SIZE_UNKNOWN)) { // start with max available size
|
// if(!Update.begin(UPDATE_SIZE_UNKNOWN)) { // start with max available size
|
||||||
const char label[] = "spiffs";
|
// const char label[] = "spiffs";
|
||||||
if(!Update.begin(size, command, -1, 0U, (const char*)label)) { // start with max available size
|
if(!Update.begin(size, command, -1, 0U)) { // start with max available size
|
||||||
webUpdatePrintError();
|
webUpdatePrintError();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user