mirror of https://github.com/ARMmbed/mbed-os.git
check WsfBufAlloc
parent
90be8d7807
commit
46d19d3732
|
@ -74,6 +74,10 @@ struct SimpleEventQueue : EventQueue {
|
|||
return false;
|
||||
}
|
||||
uint8_t* event_buf = (uint8_t*)WsfBufAlloc(sizeof(EventNode));
|
||||
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);
|
||||
if (next == NULL) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue