File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,16 @@ void wifi_scan(void)
54
54
if (strcmp (MBED_CONF_APP_WIFI_SECURE_SSID, ssid) == 0 ) {
55
55
secure_found = true ;
56
56
TEST_ASSERT_EQUAL_INT (NSAPI_SECURITY_WPA2, security);
57
- TEST_ASSERT_EQUAL_INT (MBED_CONF_APP_WIFI_CH_SECURE, ch);
57
+ if (MBED_CONF_APP_WIFI_CH_SECURE) {
58
+ TEST_ASSERT_EQUAL_INT (MBED_CONF_APP_WIFI_CH_SECURE, ch);
59
+ }
58
60
}
59
61
if (strcmp (MBED_CONF_APP_WIFI_UNSECURE_SSID, ssid) == 0 ) {
60
62
unsecure_found = true ;
61
63
TEST_ASSERT_EQUAL_INT (NSAPI_SECURITY_NONE, security);
62
- TEST_ASSERT_EQUAL_INT (MBED_CONF_APP_WIFI_CH_UNSECURE, ch);
64
+ if (MBED_CONF_APP_WIFI_CH_UNSECURE) {
65
+ TEST_ASSERT_EQUAL_INT (MBED_CONF_APP_WIFI_CH_UNSECURE, ch);
66
+ }
63
67
}
64
68
}
65
69
TEST_ASSERT_TRUE (secure_found);
You can’t perform that action at this time.
0 commit comments