Skip to content

Commit 2ac8d78

Browse files
authored
SPIFFS rennamed to FS
via esp8266/Arduino#3732
1 parent caba3d9 commit 2ac8d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncElegantOTA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AsyncElegantOtaClass{
5050

5151
#if defined(ESP8266)
5252
content_len = request->contentLength();
53-
int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH;
53+
int cmd = (filename.indexOf("spiffs") > -1) ? U_FS : U_FLASH;
5454
//uint32_t maxSketchSpace = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
5555
Update.runAsync(true);
5656
if (!Update.begin(content_len, cmd)){ // Start with max available size

0 commit comments

Comments
 (0)