瀏覽代碼

SPIFFS rennamed to FS

via https://github.com/esp8266/Arduino/pull/3732
manhere 5 年之前
父節點
當前提交
2ac8d78858
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/AsyncElegantOTA.h

+ 1 - 1
src/AsyncElegantOTA.h

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