mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-21 04:31:24 +00:00
Merge pull request #1303 from mkinney/fix_for_dupl_mac_addr
re-init so the duplicate mac address issue on NRF devices will be fixed
This commit is contained in:
commit
317ce2c9cd
@ -97,7 +97,13 @@ bool NodeDB::resetRadioConfig()
|
|||||||
nvs_flash_erase();
|
nvs_flash_erase();
|
||||||
#endif
|
#endif
|
||||||
#ifdef NRF52_SERIES
|
#ifdef NRF52_SERIES
|
||||||
|
|
||||||
|
// first, remove the "/prefs" (this removes most prefs)
|
||||||
FS.rmdir_r("/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();
|
Bluefruit.begin();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user