mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user