From e553540c164078805c705933e12d93c4a11aa599 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Fri, 15 Nov 2024 11:22:51 -0800 Subject: [PATCH] Address review comment --- examples/fabric-sync/admin/FabricAdmin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/fabric-sync/admin/FabricAdmin.cpp b/examples/fabric-sync/admin/FabricAdmin.cpp index b8bf0e0cf866d9..ed2126d34e2422 100644 --- a/examples/fabric-sync/admin/FabricAdmin.cpp +++ b/examples/fabric-sync/admin/FabricAdmin.cpp @@ -86,15 +86,14 @@ FabricAdmin::CommissionRemoteBridge(Controller::CommissioningWindowPasscodeParam if (err == CHIP_NO_ERROR) { - NodeId nodeId = DeviceManager::Instance().GetNextAvailableNodeId(); - mNodeId = nodeId; + mNodeId = DeviceManager::Instance().GetNextAvailableNodeId(); // After responding with RequestCommissioningApproval to the node where the client initiated the // RequestCommissioningApproval, you need to wait for it to open a commissioning window on its bridge. usleep(kCommissionPrepareTimeMs * 1000); PairingManager::Instance().SetPairingDelegate(this); - DeviceManager::Instance().PairRemoteDevice(nodeId, code.c_str()); + DeviceManager::Instance().PairRemoteDevice(mNodeId, code.c_str()); } else {