Skip to content

Commit 7f8c40b

Browse files
Fix crash in Wi-Fi Connect Network (#32253)
* Fix crash in Wi-Fi Connect Network * Update from comment * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 524b8a8 commit 7f8c40b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/controller/CHIPDeviceController.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -3040,8 +3040,10 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio
30403040
request.breadcrumb.Emplace(breadcrumb);
30413041

30423042
CHIP_ERROR err = CHIP_NO_ERROR;
3043-
ChipLogProgress(Controller, "SendCommand kWiFiNetworkEnable, supportsConcurrentConnection=%d",
3044-
params.GetSupportsConcurrentConnection().Value());
3043+
ChipLogProgress(Controller, "SendCommand kWiFiNetworkEnable, supportsConcurrentConnection=%s",
3044+
params.GetSupportsConcurrentConnection().HasValue()
3045+
? (params.GetSupportsConcurrentConnection().Value() ? "true" : "false")
3046+
: "missing");
30453047
err = SendCommand(proxy, request, OnConnectNetworkResponse, OnBasicFailure, endpoint, timeout);
30463048

30473049
if (err != CHIP_NO_ERROR)

0 commit comments

Comments
 (0)