kopia lustrzana https://github.com/meshtastic/firmware
Fix nvs erase for native build
rodzic
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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue