Skip to content

Commit

Permalink
Remove rangetest file on factory reset (#3322)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern authored Mar 3, 2024
1 parent e3063a2 commit 3c3d391
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mesh/NodeDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ bool NodeDB::factoryReset()
LOG_INFO("Performing factory reset!\n");
// first, remove the "/prefs" (this removes most prefs)
rmDir("/prefs");
if (FSCom.exists("/static/rangetest.csv") && !FSCom.remove("/static/rangetest.csv")) {
LOG_WARN("Could not remove rangetest.csv file\n");
}
// second, install default state (this will deal with the duplicate mac address issue)
installDefaultDeviceState();
installDefaultConfig();
Expand Down

0 comments on commit 3c3d391

Please sign in to comment.