Skip to content

Commit 2d2164c

Browse files
Restore WaitForCommissioneeCommand behavior to always use CASE
1 parent 7dcda2d commit 2d2164c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/darwin-framework-tool/commands/delay/WaitForCommissioneeCommand.mm

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
CHIP_ERROR WaitForCommissioneeCommand::RunCommand()
2424
{
25-
auto * base_device = BaseDeviceWithNodeId(mNodeId);
25+
MTRDeviceController * commissioner = CurrentCommissioner();
26+
VerifyOrReturnError(nil != commissioner, CHIP_ERROR_INCORRECT_STATE);
27+
28+
auto * base_device = [MTRBaseDevice deviceWithNodeID:@(mNodeId) controller:commissioner];
2629
VerifyOrReturnError(base_device != nil, CHIP_ERROR_INCORRECT_STATE);
2730

2831
if (mExpireExistingSession.ValueOr(true)) {

0 commit comments

Comments
 (0)