From b2827597fd20263df0d35b9162aa8a0cda8c7164 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Thu, 17 Mar 2022 20:32:15 +0000 Subject: [PATCH] re-init so the duplicate mac address issue on NRF devices will be fixed --- src/mesh/NodeDB.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 3ce28d24d..cd92f9dce 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();