We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da73b4e + b977457 commit 54154c7Copy full SHA for 54154c7
libraries/HTTPUpdateServer/src/HTTPUpdateServer.h
@@ -1,7 +1,6 @@
1
#ifndef __HTTP_UPDATE_SERVER_H
2
#define __HTTP_UPDATE_SERVER_H
3
4
-#include <SPIFFS.h>
5
#include <StreamString.h>
6
#include <Update.h>
7
#include <WebServer.h>
@@ -123,7 +122,7 @@ class HTTPUpdateServer {
123
122
Serial.printf("Update: %s\n", upload.filename.c_str());
124
}
125
if (upload.name == "filesystem") {
126
- if (!Update.begin(SPIFFS.totalBytes(), U_SPIFFS)) { //start with max available size
+ if (!Update.begin(UPDATE_SIZE_UNKNOWN, U_SPIFFS)) { //Instead of SPIFFS.totalBytes(). Fix https://github.com/espressif/arduino-esp32/issues/9967
127
if (_serial_output) {
128
Update.printError(Serial);
129
0 commit comments