Skip to content

Commit

Permalink
Add build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brosahay committed Aug 11, 2024
1 parent aeb9f9d commit e625cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/platform/silabs/efr32/wf200/host_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ sl_status_t wfx_connect_to_ap(void)
sl_status_t result;
sl_wfx_security_mode_t connect_security_mode;

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

ChipLogDetail(DeviceLayer,
Expand Down Expand Up @@ -1203,7 +1203,7 @@ bool wfx_start_scan(char * ssid, void (*callback)(wfx_wifi_scan_result_t *))
if (ssid)
{
sz = strnlen(ssid, WFX_MAX_SSID_LENGTH);
scan_ssid = dynamic_cast<char *>(pvPortMalloc(sz + 1));
scan_ssid = reinterpret_cast<char *>(pvPortMalloc(sz + 1));
VerifyOrReturnError(scan_ssid != NULL, false);
strncpy(scan_ssid, ssid, sz);
}
Expand Down

0 comments on commit e625cc8

Please sign in to comment.