diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 3ce28d24..cd92f9dc 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -97,7 +97,13 @@ bool NodeDB::resetRadioConfig() nvs_flash_erase(); #endif #ifdef NRF52_SERIES + + // first, remove the "/prefs" (this removes most prefs) FS.rmdir_r("/prefs"); + // second, install default state (this will deal with the duplicate mac address issue) + installDefaultDeviceState(); + // third, write to disk + saveToDisk(); Bluefruit.begin();