[mw320] Remove doing factory-reset on fail-safe armed (#29882)
Signed-off-by: Chin-Ran Lo <chin-ran.lo@nxp.com>
diff --git a/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp b/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp
index ee61de6..1a88ebc 100644
--- a/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp
+++ b/src/platform/nxp/mw320/ConfigurationManagerImpl.cpp
@@ -53,7 +53,6 @@
{
CHIP_ERROR err;
uint32_t rebootCount = 0;
- bool failSafeArmed;
// Initialize the generic implementation base class.
// err = Internal::GenericConfigurationManagerImpl<ConfigurationManagerImpl>::Init();
@@ -74,12 +73,6 @@
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))
{