From 9f6bdb8e446e2a3257e55c0cfd64f96c95755b28 Mon Sep 17 00:00:00 2001 From: crlonxp <88241281+crlonxp@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:38:05 +0800 Subject: [PATCH] [mw320] Remove doing factory-reset on fail-safe armed (#29882) Signed-off-by: Chin-Ran Lo --- src/platform/nxp/mw320/ConfigurationManagerImpl.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp b/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp index ee61de629109ae..1a88ebc7c75e55 100644 --- a/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp +++ b/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp @@ -53,7 +53,6 @@ CHIP_ERROR ConfigurationManagerImpl::Init() { CHIP_ERROR err; uint32_t rebootCount = 0; - bool failSafeArmed; // Initialize the generic implementation base class. // err = Internal::GenericConfigurationManagerImpl::Init(); @@ -74,12 +73,6 @@ CHIP_ERROR ConfigurationManagerImpl::Init() err = StoreRebootCount(1); SuccessOrExit(err); } - // If the fail-safe was armed when the device last shutdown, initiate a factory reset. - if (GetFailSafeArmed(failSafeArmed) == CHIP_NO_ERROR && failSafeArmed) - { - ChipLogProgress(DeviceLayer, "Detected fail-safe armed on reboot; initiating factory reset"); - InitiateFactoryReset(); - } if (!MW320Config::ConfigValueExists(MW320Config::kCounterKey_BootReason)) {