diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 73e37a7ce..04359aaed 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -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; }