Cellular: Fix network interface test for cellular targets

pull/10120/head
Mirela Chirica 2019-03-15 11:29:01 +02:00
parent 5c79394756
commit d15bcfe83a
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++;