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();
|
nvs_flash_erase();
|
||||||
#endif
|
#endif
|
||||||
#ifdef NRF52_SERIES
|
#ifdef NRF52_SERIES
|
||||||
|
FS.rmdir_r("/prefs");
|
||||||
|
|
||||||
installDefaultDeviceState();
|
Bluefruit.begin();
|
||||||
installDefaultRadioConfig();
|
|
||||||
installDefaultChannels();
|
|
||||||
saveToDisk();
|
|
||||||
saveChannelsToDisk();
|
|
||||||
|
|
||||||
Bluefruit.begin();
|
DEBUG_MSG("Clearing bluetooth bonds!\n");
|
||||||
|
bond_print_list(BLE_GAP_ROLE_PERIPH);
|
||||||
DEBUG_MSG("Clearing bluetooth bonds!\n");
|
bond_print_list(BLE_GAP_ROLE_CENTRAL);
|
||||||
bond_print_list(BLE_GAP_ROLE_PERIPH);
|
|
||||||
bond_print_list(BLE_GAP_ROLE_CENTRAL);
|
|
||||||
|
|
||||||
Bluefruit.Periph.clearBonds();
|
|
||||||
Bluefruit.Central.clearBonds();
|
|
||||||
|
|
||||||
|
Bluefruit.Periph.clearBonds();
|
||||||
|
Bluefruit.Central.clearBonds();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
didFactoryReset = true;
|
didFactoryReset = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user