mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 21:51:46 +00:00
try removing the /prefs dir
This commit is contained in:
parent
d57ac39b02
commit
e6731e28c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user