From 1125359cbb30a69e162fc3ce0b10bda42902d02a Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Tue, 21 Mar 2023 20:23:32 +0800 Subject: [PATCH] [Ameba] Reboot after factory reset (#25760) * reboot after factoryreset * restyle --- src/platform/Ameba/ConfigurationManagerImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/Ameba/ConfigurationManagerImpl.cpp b/src/platform/Ameba/ConfigurationManagerImpl.cpp index ab71f54a59132a..9eb8e08d3867f4 100644 --- a/src/platform/Ameba/ConfigurationManagerImpl.cpp +++ b/src/platform/Ameba/ConfigurationManagerImpl.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include namespace chip { @@ -274,7 +275,7 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg) // Restart the system. ChipLogProgress(DeviceLayer, "System restarting"); - // sys_reset(); + sys_reset(); } ConfigurationManager & ConfigurationMgrImpl()