Skip to content

Commit

Permalink
Fix crash in Wi-Fi Connect Network (#32253)
Browse files Browse the repository at this point in the history
* Fix crash in Wi-Fi Connect Network

* Update from comment

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
joonhaengHeo and restyled-commits authored Feb 23, 2024
1 parent 524b8a8 commit 7f8c40b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3040,8 +3040,10 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio
request.breadcrumb.Emplace(breadcrumb);

CHIP_ERROR err = CHIP_NO_ERROR;
ChipLogProgress(Controller, "SendCommand kWiFiNetworkEnable, supportsConcurrentConnection=%d",
params.GetSupportsConcurrentConnection().Value());
ChipLogProgress(Controller, "SendCommand kWiFiNetworkEnable, supportsConcurrentConnection=%s",
params.GetSupportsConcurrentConnection().HasValue()
? (params.GetSupportsConcurrentConnection().Value() ? "true" : "false")
: "missing");
err = SendCommand(proxy, request, OnConnectNetworkResponse, OnBasicFailure, endpoint, timeout);

if (err != CHIP_NO_ERROR)
Expand Down

0 comments on commit 7f8c40b

Please sign in to comment.