Skip to content

Commit

Permalink
Adds build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brosahay committed Jul 22, 2024
1 parent 0204395 commit c177995
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/platform/silabs/efr32/rs911x/wfx_rsi_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ bool wfx_get_wifi_provision(wfx_wifi_provision_t * wifiConfig)
***********************************************************************/
void wfx_clear_wifi_provision(void)
{
VerifyOrReturn(wfx_rsi.sec != NULL);
memset(&wfx_rsi.sec, 0, sizeof(wfx_rsi.sec));
wfx_rsi.dev_state &= ~WFX_RSI_ST_STA_PROVISIONED;
}
Expand Down Expand Up @@ -366,7 +365,7 @@ bool wfx_start_scan(char * ssid, void (*callback)(wfx_wifi_scan_result_t *))
VerifyOrReturnError(ssid != NULL, false);
size_t ssid_len;
ssid_len = strnlen(ssid, WFX_MAX_SSID_LENGTH);
wfx_rsi.scan_ssid = dynamic_cast<char *>(pvPortMalloc(ssid_len + 1));
wfx_rsi.scan_ssid = reinterpret_cast<char *>(pvPortMalloc(ssid_len + 1));
VerifyOrReturnError(wfx_rsi.scan_ssid != NULL, false);
strncpy(wfx_rsi.scan_ssid, ssid, WFX_MAX_SSID_LENGTH);

Expand Down

0 comments on commit c177995

Please sign in to comment.