mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 17:42:48 +00:00
Remove rangetest file on factory reset (#3322)
This commit is contained in:
parent
e3063a2785
commit
3c3d391044
@ -130,6 +130,9 @@ bool NodeDB::factoryReset()
|
|||||||
LOG_INFO("Performing factory reset!\n");
|
LOG_INFO("Performing factory reset!\n");
|
||||||
// first, remove the "/prefs" (this removes most prefs)
|
// first, remove the "/prefs" (this removes most prefs)
|
||||||
rmDir("/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)
|
// second, install default state (this will deal with the duplicate mac address issue)
|
||||||
installDefaultDeviceState();
|
installDefaultDeviceState();
|
||||||
installDefaultConfig();
|
installDefaultConfig();
|
||||||
|
Loading…
Reference in New Issue
Block a user