mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 14:42:05 +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) {
|
||||
DEBUG_MSG("Performing factory reset!\n");
|
||||
installDefaultDeviceState();
|
||||
#ifndef NO_ESP32
|
||||
// This will erase what's in NVS including ssl keys, persistant variables and ble pairing
|
||||
nvs_flash_erase();
|
||||
#endif
|
||||
didFactoryReset = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user