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()
This commit is contained in:
Shubham Patil
2025-03-03 16:33:51 +05:30
parent 60ef414e83
commit 8ba3ea856e
+1 -1
View File
@@ -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;
}