mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fixes does Factory Reset from the webUI work? #628
This commit is contained in:
@@ -25,9 +25,10 @@ void FactoryResetService::factoryReset() {
|
||||
File root = fs->open(FS_CONFIG_DIRECTORY);
|
||||
File file;
|
||||
while (file = root.openNextFile()) {
|
||||
char * pathStr = strdup(file.name());
|
||||
String path = file.path();
|
||||
file.close();
|
||||
fs->remove(pathStr);
|
||||
fs->remove(path);
|
||||
}
|
||||
|
||||
RestartService::restartNow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user