mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Execute filesystemSetupFiles afterdispatch_factory_reset
This commit is contained in:
parent
153315d799
commit
d477d6ad3d
@ -1071,6 +1071,7 @@ bool dispatch_factory_reset()
|
||||
|
||||
#if HASP_USE_SPIFFS > 0 || HASP_USE_LITTLEFS > 0
|
||||
formated = HASP_FS.format();
|
||||
if (formated) filesystemSetupFiles();
|
||||
#endif
|
||||
|
||||
#if HASP_USE_EEPROM > 0
|
||||
|
@ -195,7 +195,7 @@ static inline void filesystemCreateFile(const char* filename, const char* data)
|
||||
file.close();
|
||||
}
|
||||
|
||||
static inline void filesystemSetupFiles()
|
||||
void filesystemSetupFiles()
|
||||
{
|
||||
filesystemCreateFile("/pages.jsonl", HASP_PAGES_JSONL);
|
||||
filesystemCreateFile("/online.cmd", HASP_ONLINE_CMD);
|
||||
|
@ -10,6 +10,7 @@ bool filesystemSetup(void);
|
||||
|
||||
void filesystemList();
|
||||
void filesystemInfo();
|
||||
void filesystemSetupFiles();
|
||||
|
||||
#if defined(ARDUINO_ARCH_ESP32)
|
||||
void filesystemUnzip(const char*, const char* filename, uint8_t source);
|
||||
|
Loading…
x
Reference in New Issue
Block a user