mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-02 03:05:20 -04:00
Replace FSCom.format() with FSCom.rmDir() for directory cleanup in NodeDB::loadFromDisk()
This commit is contained in:
1 parent
7be5426f34
commit
089af764ec
1 file changed
+1
-1
+1
-1
@@ -1209,7 +1209,7 @@ void NodeDB::loadFromDisk()
|
||||
spiLock->lock();
|
||||
if (!FSCom.exists("/prefs/" xstr(BUILD_EPOCH))) {
|
||||
LOG_WARN("Factory Install Reset!");
|
||||
FSCom.format();
|
||||
FSCom.rmDir("/prefs");
|
||||
FSCom.mkdir("/prefs");
|
||||
File f2 = FSCom.open("/prefs/" xstr(BUILD_EPOCH), FILE_O_WRITE);
|
||||
if (f2) {
|
||||
|
||||
Reference in new issue
Block a user