From 79dd7c719b5fa6a605e4df54acd99cf4a1b8a8da Mon Sep 17 00:00:00 2001 From: yunhanw-google Date: Thu, 23 May 2024 15:28:44 -0700 Subject: [PATCH] [ICD] Reset mNeedIcdRegistration to false when starting the commision flow (#33574) * reset mNeedIcdRegistration to false when starting the commision flow * address comments --- src/controller/AutoCommissioner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/AutoCommissioner.cpp b/src/controller/AutoCommissioner.cpp index 5b37988a491260..a72543853fa2d1 100644 --- a/src/controller/AutoCommissioner.cpp +++ b/src/controller/AutoCommissioner.cpp @@ -125,6 +125,8 @@ CHIP_ERROR AutoCommissioner::SetCommissioningParameters(const CommissioningParam mParams = params; + mNeedIcdRegistration = false; + if (haveMaybeDanglingBufferPointers) { mParams.ClearExternalBufferDependentValues();