Skip to content

Commit

Permalink
Passing in null to callback: RequestUserDirectedCommisisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadb-amazon committed Aug 23, 2021
1 parent b3a5c31 commit ce10168
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/tv-casting-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ void InitCommissioningFlow(intptr_t commandArg)
VerifyOrReturn(fcntl(0, F_SETFL, flags | O_NONBLOCK) == 0,
ChipLogError(Zcl, "Could not set non-blocking mode for user input!"));
ReturnOnFailure(chip::DeviceLayer::SystemLayer.StartWatchingSocket(0, &token));
ReturnOnFailure(chip::DeviceLayer::SystemLayer.SetCallback(token, RequestUserDirectedCommisisioning,
reinterpret_cast<intptr_t>(&commissionerCount)));
ReturnOnFailure(chip::DeviceLayer::SystemLayer.SetCallback(token, RequestUserDirectedCommisisioning, (intptr_t) NULL));
ReturnOnFailure(chip::DeviceLayer::SystemLayer.RequestCallbackOnPendingRead(token));
}
else
Expand Down

0 comments on commit ce10168

Please sign in to comment.