mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-11 23:52:14 +00:00
Fix nvs erase for native build
This commit is contained in:
parent
2ee1155c78
commit
465ff3dd25
@ -87,7 +87,10 @@ bool NodeDB::resetRadioConfig()
|
|||||||
if (radioConfig.preferences.factory_reset) {
|
if (radioConfig.preferences.factory_reset) {
|
||||||
DEBUG_MSG("Performing factory reset!\n");
|
DEBUG_MSG("Performing factory reset!\n");
|
||||||
installDefaultDeviceState();
|
installDefaultDeviceState();
|
||||||
|
#ifndef NO_ESP32
|
||||||
|
// This will erase what's in NVS including ssl keys, persistant variables and ble pairing
|
||||||
nvs_flash_erase();
|
nvs_flash_erase();
|
||||||
|
#endif
|
||||||
didFactoryReset = true;
|
didFactoryReset = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user