Fix nvs erase for native build

This commit is contained in:
Jm Casler 2022-01-08 12:03:18 -08:00
parent 2ee1155c78
commit 465ff3dd25

View File

@ -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;
}