Skip to content

Commit f838219

Browse files
brosahayrosahay-silabs
authored andcommitted
Add build fixes
1 parent 49f9876 commit f838219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/platform/silabs/efr32/wf200/host_if.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ sl_status_t wfx_connect_to_ap(void)
10051005
sl_status_t result;
10061006
sl_wfx_security_mode_t connect_security_mode;
10071007

1008-
VerifyOrReturnError(wifi_provision.ssid[0] != NULL, SL_STATUS_NOT_AVAILABLE);
1008+
VerifyOrReturnError(wifi_provision.ssid[0] != static_cast<char>(NULL), SL_STATUS_NOT_AVAILABLE);
10091009
ChipLogDetail(DeviceLayer, "WIFI:JOIN to %s", &wifi_provision.ssid[0]);
10101010

10111011
ChipLogDetail(DeviceLayer,
@@ -1203,7 +1203,7 @@ bool wfx_start_scan(char * ssid, void (*callback)(wfx_wifi_scan_result_t *))
12031203
if (ssid)
12041204
{
12051205
sz = strnlen(ssid, WFX_MAX_SSID_LENGTH);
1206-
scan_ssid = dynamic_cast<char *>(pvPortMalloc(sz + 1));
1206+
scan_ssid = reinterpret_cast<char *>(pvPortMalloc(sz + 1));
12071207
VerifyOrReturnError(scan_ssid != NULL, false);
12081208
strncpy(scan_ssid, ssid, sz);
12091209
}

0 commit comments

Comments
 (0)