assert instead of error

pull/8269/head
paul-szczepanek-arm 2018-09-27 17:07:40 +01:00
parent 8f5e2725ae
commit 88a87518b4
1 changed files with 1 additions and 1 deletions

View File

@ -75,8 +75,8 @@ struct SimpleEventQueue : pal::EventQueue {
return false;
}
void* event_buf = WsfBufAlloc(sizeof(EventNode));
MBED_ASSERT(event_buf != NULL);
if (event_buf == NULL) {
error("\r\n%s:%d Cordio WsfBufAlloc out of memory\r\n", __FILE__, __LINE__);
return false;
}
EventNode* next = new(event_buf) EventNode(event);