From 8ba3ea856e2ab547488974a5c6a6bc06d97ef2b2 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Mon, 3 Mar 2025 16:33:51 +0530 Subject: [PATCH] components/esp_matter: call ScheduleFactoryReset from esp_matter::factory_reset ScheduleFactoryReset() additionally removes the fabric data, sends the server shutting down event and then calls InitiateFactoryReset() --- components/esp_matter/esp_matter_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_core.cpp b/components/esp_matter/esp_matter_core.cpp index 22294591d..e4add90b9 100644 --- a/components/esp_matter/esp_matter_core.cpp +++ b/components/esp_matter/esp_matter_core.cpp @@ -898,7 +898,7 @@ esp_err_t factory_reset() } /* Submodule factory reset. This also restarts after completion. */ - ConfigurationMgr().InitiateFactoryReset(); + chip::Server::GetInstance().ScheduleFactoryReset(); return err; }