Skip to content

Commit cc9d5c8

Browse files
Adds fix for return check
1 parent 8b760a1 commit cc9d5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ static sl_status_t wfx_rsi_do_join(void)
689689
status = sl_wifi_connect(SL_WIFI_CLIENT_INTERFACE, &ap, timeout_ms);
690690
// sl_wifi_connect returns SL_STATUS_IN_PROGRESS if join is in progress
691691
// after the initial scan is done, the scan does not check for SSID
692-
VerifyOrReturnError((status == SL_STATUS_OK || status == SL_STATUS_IN_PROGRESS), status);
692+
ReturnErrorCodeIf((status == SL_STATUS_OK || status == SL_STATUS_IN_PROGRESS), status);
693693

694694
// failure only happens when the firmware returns an error
695695
ChipLogError(DeviceLayer, "wfx_rsi_do_join: sl_wifi_connect failed: 0x%lx", status);

0 commit comments

Comments
 (0)