mirror of https://github.com/ARMmbed/mbed-os.git
assert instead of error
parent
8f5e2725ae
commit
88a87518b4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue