Add previously unsaved changes

This commit is contained in:
cschwinne 2020-09-09 09:54:58 +02:00
parent b1acf6088f
commit 649ebb8a4e
2 changed files with 3 additions and 3 deletions

View File

@ -128,6 +128,7 @@
// WLED Error modes // WLED Error modes
#define ERR_NONE 0 // All good :) #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_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_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 #define ERR_FS_PLOAD 12 // It was attempted to load a preset that does not exist

View File

@ -24,7 +24,6 @@ void WLED::reset()
setAllLeds(); setAllLeds();
DEBUG_PRINTLN("MODULE RESET"); DEBUG_PRINTLN("MODULE RESET");
ESP.restart(); ESP.restart();
SPIFFS.begin();
} }
bool oappendi(int i) bool oappendi(int i)
@ -174,9 +173,9 @@ void WLED::setup()
#ifndef WLED_DISABLE_FILESYSTEM #ifndef WLED_DISABLE_FILESYSTEM
#ifdef ARDUINO_ARCH_ESP32 #ifdef ARDUINO_ARCH_ESP32
SPIFFS.begin(true); WLED_FS.begin(true);
#endif #endif
SPIFFS.begin(); WLED_FS.begin();
#endif #endif
DEBUG_PRINTLN("Load EEPROM"); DEBUG_PRINTLN("Load EEPROM");