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
1.2-legacy
mkinney 2022-03-17 13:47:11 -07:00 zatwierdzone przez GitHub
commit 317ce2c9cd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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();