From ce1016859aa50b0565d4d539b22f2550223c3bad Mon Sep 17 00:00:00 2001 From: Sharad Binjola Date: Mon, 23 Aug 2021 23:08:24 +0000 Subject: [PATCH] Passing in null to callback: RequestUserDirectedCommisisioning --- examples/tv-casting-app/linux/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/tv-casting-app/linux/main.cpp b/examples/tv-casting-app/linux/main.cpp index 4ea962121f3b05..b1442c3657b1c3 100644 --- a/examples/tv-casting-app/linux/main.cpp +++ b/examples/tv-casting-app/linux/main.cpp @@ -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(&commissionerCount))); + ReturnOnFailure(chip::DeviceLayer::SystemLayer.SetCallback(token, RequestUserDirectedCommisisioning, (intptr_t) NULL)); ReturnOnFailure(chip::DeviceLayer::SystemLayer.RequestCallbackOnPendingRead(token)); } else