From 5f5e78e39ec3fd9c8b84b1e38d0b829480e05e8a Mon Sep 17 00:00:00 2001 From: Chin-Ran Lo Date: Fri, 20 Oct 2023 18:29:33 +0800 Subject: [PATCH] [mw320] Remove doing factory-reset on fail-safe armed 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)) {