Skip to content

Commit

Permalink
fixes does Factory Reset from the webUI work? #628
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Sep 20, 2022
1 parent c11ea4f commit 23f65b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/framework/FactoryResetService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 23f65b9

Please sign in to comment.