Don't use rmdir_r but roll our own version.

This commit is contained in:
Thomas Göttgens
2022-06-15 17:52:37 +02:00
parent b127479961
commit 125f76d984
3 changed files with 32 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ bool NodeDB::resetRadioConfig()
if (config.device.factory_reset) {
DEBUG_MSG("Performing factory reset!\n");
// first, remove the "/prefs" (this removes most prefs)
FSCom.rmdir_r("/prefs");
rmDir("/prefs");
// second, install default state (this will deal with the duplicate mac address issue)
installDefaultDeviceState();
// third, write to disk