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,12 +97,7 @@ bool NodeDB::resetRadioConfig()
|
|||||||
nvs_flash_erase();
|
nvs_flash_erase();
|
||||||
#endif
|
#endif
|
||||||
#ifdef NRF52_SERIES
|
#ifdef NRF52_SERIES
|
||||||
|
FS.rmdir_r("/prefs");
|
||||||
installDefaultDeviceState();
|
|
||||||
installDefaultRadioConfig();
|
|
||||||
installDefaultChannels();
|
|
||||||
saveToDisk();
|
|
||||||
saveChannelsToDisk();
|
|
||||||
|
|
||||||
Bluefruit.begin();
|
Bluefruit.begin();
|
||||||
|
|
||||||
@ -113,7 +108,6 @@ bool NodeDB::resetRadioConfig()
|
|||||||
Bluefruit.Periph.clearBonds();
|
Bluefruit.Periph.clearBonds();
|
||||||
Bluefruit.Central.clearBonds();
|
Bluefruit.Central.clearBonds();
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
didFactoryReset = true;
|
didFactoryReset = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user