From e6731e28c1dd5db9667aa7f4eb059ddd5ac1635b Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Thu, 17 Mar 2022 18:33:30 +0000 Subject: [PATCH] try removing the /prefs dir --- src/mesh/NodeDB.cpp | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 204efcda4..3ce28d24d 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -97,22 +97,16 @@ bool NodeDB::resetRadioConfig() nvs_flash_erase(); #endif #ifdef NRF52_SERIES + FS.rmdir_r("/prefs"); - installDefaultDeviceState(); - installDefaultRadioConfig(); - installDefaultChannels(); - saveToDisk(); - saveChannelsToDisk(); + Bluefruit.begin(); - Bluefruit.begin(); - - DEBUG_MSG("Clearing bluetooth bonds!\n"); - bond_print_list(BLE_GAP_ROLE_PERIPH); - bond_print_list(BLE_GAP_ROLE_CENTRAL); - - Bluefruit.Periph.clearBonds(); - Bluefruit.Central.clearBonds(); + DEBUG_MSG("Clearing bluetooth bonds!\n"); + bond_print_list(BLE_GAP_ROLE_PERIPH); + bond_print_list(BLE_GAP_ROLE_CENTRAL); + Bluefruit.Periph.clearBonds(); + Bluefruit.Central.clearBonds(); #endif didFactoryReset = true;