This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1301,6 +1301,8 @@ class ESPAsync_WiFiManager_Lite
1301
1301
1302
1302
bool extLoadDynamicData ()
1303
1303
{
1304
+ #if ( USE_LITTLEFS || USE_SPIFFS )
1305
+
1304
1306
#if ESP8266
1305
1307
// SPIFFS and LittleFS do auto-format if not yet
1306
1308
if (!FileFS.begin ())
@@ -1314,12 +1316,20 @@ class ESPAsync_WiFiManager_Lite
1314
1316
}
1315
1317
1316
1318
return loadDynamicData ();
1319
+
1320
+ #else // #if ( USE_LITTLEFS || USE_SPIFFS )
1321
+
1322
+ return EEPROM_getDynamicData ();
1323
+
1324
+ #endif // #if ( USE_LITTLEFS || USE_SPIFFS )
1317
1325
}
1318
1326
1319
1327
// ////////////////////////////////////////////
1320
1328
1321
1329
void extSaveDynamicData ()
1322
1330
{
1331
+ #if ( USE_LITTLEFS || USE_SPIFFS )
1332
+
1323
1333
#if ESP8266
1324
1334
// SPIFFS and LittleFS do auto-format if not yet
1325
1335
if (!FileFS.begin ())
@@ -1333,6 +1343,12 @@ class ESPAsync_WiFiManager_Lite
1333
1343
}
1334
1344
1335
1345
saveDynamicData ();
1346
+
1347
+ #else // #if ( USE_LITTLEFS || USE_SPIFFS )
1348
+
1349
+ EEPROM_putDynamicData ();
1350
+
1351
+ #endif // #if ( USE_LITTLEFS || USE_SPIFFS )
1336
1352
}
1337
1353
1338
1354
#endif
You can’t perform that action at this time.
0 commit comments