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.
1 parent caba3d9 commit 2ac8d78Copy full SHA for 2ac8d78
src/AsyncElegantOTA.h
@@ -50,7 +50,7 @@ class AsyncElegantOtaClass{
50
51
#if defined(ESP8266)
52
content_len = request->contentLength();
53
- int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH;
+ int cmd = (filename.indexOf("spiffs") > -1) ? U_FS : U_FLASH;
54
//uint32_t maxSketchSpace = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
55
Update.runAsync(true);
56
if (!Update.begin(content_len, cmd)){ // Start with max available size
0 commit comments