From 173698188d7471945d0042d702b13f6e77c29931 Mon Sep 17 00:00:00 2001 From: wyhong <30567533+wy-hh@users.noreply.github.com> Date: Tue, 12 Sep 2023 03:37:54 +0800 Subject: [PATCH] [Bouffalolab] Don't factory reset device if reboot with a pending arm failsafe (#29146) --- .../bouffalolab/common/ConfigurationManagerImpl.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/platform/bouffalolab/common/ConfigurationManagerImpl.cpp b/src/platform/bouffalolab/common/ConfigurationManagerImpl.cpp index b9719b795d15c3..4d6a50e485fe11 100644 --- a/src/platform/bouffalolab/common/ConfigurationManagerImpl.cpp +++ b/src/platform/bouffalolab/common/ConfigurationManagerImpl.cpp @@ -48,7 +48,6 @@ bool ConfigurationManagerImpl::IsFullyProvisioned() CHIP_ERROR ConfigurationManagerImpl::Init() { CHIP_ERROR err; - bool failSafeArmed; uint32_t rebootCount = 0; err = Internal::GenericConfigurationManagerImpl::Init(); @@ -72,12 +71,6 @@ CHIP_ERROR ConfigurationManagerImpl::Init() 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(); - } err = CHIP_NO_ERROR; exit: