Skip to content

Commit

Permalink
Make DeviceCommissioner::OnNodeIdResolved same as master
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebin14 authored May 28, 2021
1 parent 811fb56 commit c1a7cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,9 +1526,10 @@ void BasicFailure(void * context, uint8_t status)
#if CHIP_DEVICE_CONFIG_ENABLE_MDNS
void DeviceCommissioner::OnNodeIdResolved(const chip::Mdns::ResolvedNodeData & nodeData)
{
Device * device = nullptr;
if (mDeviceBeingPaired < kNumMaxActiveDevices)
{
Device * device = &mActiveDevices[mDeviceBeingPaired];
device = &mActiveDevices[mDeviceBeingPaired];
if (device->GetDeviceId() == nodeData.mPeerId.GetNodeId() && mCommissioningStage == CommissioningStage::kFindOperational)
{
AdvanceCommissioningStage(CHIP_NO_ERROR);
Expand Down

0 comments on commit c1a7cb0

Please sign in to comment.