Skip to content

Commit d15bcfe

Browse files
author
Mirela Chirica
committed
Cellular: Fix network interface test for cellular targets
1 parent 5c79394 commit d15bcfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TESTS/network/interface/networkinterface_status.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ nsapi_connection_status_t statuses[status_buffer_size];
3636

3737
void status_cb(nsapi_event_t event, intptr_t value)
3838
{
39-
TEST_ASSERT_EQUAL(NSAPI_EVENT_CONNECTION_STATUS_CHANGE, event);
39+
if (event != NSAPI_EVENT_CONNECTION_STATUS_CHANGE) {
40+
return;
41+
}
4042

4143
statuses[status_write_counter] = static_cast<nsapi_connection_status_t>(value);
4244
status_write_counter++;

0 commit comments

Comments
 (0)