Skip to content

Commit d3d4978

Browse files
dchat-nordicnordicjm
authored andcommitted
applications: ipc_radio: Workaround release_rx_buffer spurious error
Workaround spurious error of positive return value of the function ipc_service_release_rx_buffer for icbmsg. Signed-off-by: Dominik Chat <[email protected]>
1 parent f195846 commit d3d4978

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

applications/ipc_radio/src/bt_hci_ipc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,10 @@ static void queue_thread(void)
283283
}
284284

285285
err = ipc_service_release_rx_buffer(&hci_ept, (void *)block.ptr);
286-
if (err) {
286+
if (err < 0) {
287287
LOG_ERR("Failed to release rx buffer: %d.", err);
288+
} else {
289+
LOG_DBG("Released rx buffer with ret %d.", err);
288290
}
289291

290292
if (buf) {

0 commit comments

Comments
 (0)