From 2541488bc6808b36504c190b5878ec24654ee3c3 Mon Sep 17 00:00:00 2001 From: Hrishikesh Dhayagude Date: Fri, 6 Nov 2020 21:55:15 +0530 Subject: [PATCH] ESP32: Fix PluginBasicResetToFactoryDefaultsCallback to call the correct API (#3650) --- examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp b/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp index 701c71c831089e..a8cf0c603f8a5b 100644 --- a/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp @@ -170,7 +170,7 @@ void DeviceCallbacks::PluginBasicResetToFactoryDefaultsCallback(uint8_t endpoint VerifyOrExit(endpointId == 1, ESP_LOGE(TAG, "Unexpected EndPoint ID: `0x%02x'", endpointId)); - ConnectivityMgr().ClearWiFiStationProvision(); + ConfigurationMgr().InitiateFactoryReset(); exit: return;