Skip to content

Commit

Permalink
lib: at_monitor: assert when out of memory for notifications
Browse files Browse the repository at this point in the history
Make sure this situation is well visible during development.

Signed-off-by: Emanuele Di Santo <[email protected]>
  • Loading branch information
lemrey authored and rlubos committed Dec 13, 2023
1 parent 3e6909e commit 778876a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/at_monitor/at_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ void at_monitor_dispatch(const char *notif)

at_notif = k_heap_alloc(&at_monitor_heap, sz_needed, K_NO_WAIT);
if (!at_notif) {
LOG_WRN("No heap space for incoming notification: %s",
notif);
LOG_WRN("No heap space for incoming notification: %s", notif);
__ASSERT(at_notif, "No heap space for incoming notification: %s", notif);
return;
}

Expand Down

0 comments on commit 778876a

Please sign in to comment.