File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ CHIP_ERROR ConfigurationManagerImpl::WritePersistedStorageValue(::chip::Platform
115
115
void ConfigurationManagerImpl::DoFactoryReset (intptr_t arg)
116
116
{
117
117
CHIP_ERROR err;
118
+ qvStatus_t qvErr;
118
119
119
120
ChipLogProgress (DeviceLayer, " Performing factory reset" );
120
121
@@ -124,6 +125,12 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
124
125
ChipLogError (DeviceLayer, " FactoryResetConfig() failed: %s" , ErrorStr (err));
125
126
}
126
127
128
+ qvErr = qvCHIP_KvsErasePartition ();
129
+ if (qvErr != QV_STATUS_NO_ERROR)
130
+ {
131
+ ChipLogError (DeviceLayer, " qvCHIP_KvsErasePartition() failed: %d" , qvErr);
132
+ }
133
+
127
134
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
128
135
129
136
ChipLogProgress (DeviceLayer, " Clearing Thread provision" );
You can’t perform that action at this time.
0 commit comments