diff --git a/wled00/const.h b/wled00/const.h index e25520599..d3a354b9c 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -128,6 +128,7 @@ // WLED Error modes #define ERR_NONE 0 // All good :) +#define ERR_EEP_COMMIT 2 // Could not commit to EEPROM (wrong flash layout?) #define ERR_FS_BEGIN 10 // Could not init filesystem (no partition?) #define ERR_FS_QUOTA 11 // The FS is full or the maximum file size is reached #define ERR_FS_PLOAD 12 // It was attempted to load a preset that does not exist diff --git a/wled00/wled.cpp b/wled00/wled.cpp index 71e319509..25c9f1db0 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -24,7 +24,6 @@ void WLED::reset() setAllLeds(); DEBUG_PRINTLN("MODULE RESET"); ESP.restart(); - SPIFFS.begin(); } bool oappendi(int i) @@ -174,9 +173,9 @@ void WLED::setup() #ifndef WLED_DISABLE_FILESYSTEM #ifdef ARDUINO_ARCH_ESP32 - SPIFFS.begin(true); + WLED_FS.begin(true); #endif - SPIFFS.begin(); + WLED_FS.begin(); #endif DEBUG_PRINTLN("Load EEPROM");