Fix nvs erase for native build

pull/1073/head^2
Jm Casler 2022-01-08 12:03:18 -08:00
rodzic 2ee1155c78
commit 465ff3dd25
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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