Cellular: Fix network interface test for cellular targets

pull/10326/head
Mirela Chirica 2019-03-15 11:29:01 +02:00 committed by Martin Kojtal
parent a12f8cd5db
commit 9567800914
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@ nsapi_connection_status_t statuses[status_buffer_size];
void status_cb(nsapi_event_t event, intptr_t value)
{
TEST_ASSERT_EQUAL(NSAPI_EVENT_CONNECTION_STATUS_CHANGE, event);
if (event != NSAPI_EVENT_CONNECTION_STATUS_CHANGE) {
return;
}
statuses[status_write_counter] = static_cast<nsapi_connection_status_t>(value);
status_write_counter++;