Skip to content

Commit 88a8751

Browse files
assert instead of error
1 parent 8f5e272 commit 88a8751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/SimpleEventQueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ struct SimpleEventQueue : pal::EventQueue {
7575
return false;
7676
}
7777
void* event_buf = WsfBufAlloc(sizeof(EventNode));
78+
MBED_ASSERT(event_buf != NULL);
7879
if (event_buf == NULL) {
79-
error("\r\n%s:%d Cordio WsfBufAlloc out of memory\r\n", __FILE__, __LINE__);
8080
return false;
8181
}
8282
EventNode* next = new(event_buf) EventNode(event);

0 commit comments

Comments
 (0)