Skip to content

Commit fbde1ee

Browse files
alexsvenkoffes
authored andcommitted
applications: nrf5340_audio: Remove ERR_CHK from zbus_publish
- Remove ERR_CHK from zbus_publush for content control These events are not critical as the user can always press again if the system is too busy to schedule in the event queue. - OCT-3263 Signed-off-by: Alexander Svensen <[email protected]>
1 parent a53f146 commit fbde1ee

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

applications/nrf5340_audio/src/bluetooth/bt_content_control/bt_content_ctrl.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ static void media_control_cb(bool play)
3131
}
3232

3333
ret = zbus_chan_pub(&cont_media_chan, &msg, K_NO_WAIT);
34-
ERR_CHK_MSG(ret, "zbus publication failed");
34+
if (ret) {
35+
LOG_ERR("zbus publication failed: %d", ret);
36+
}
3537
}
3638

3739
int bt_content_ctrl_start(struct bt_conn *conn)
@@ -52,7 +54,9 @@ int bt_content_ctrl_start(struct bt_conn *conn)
5254
msg.event = MEDIA_START;
5355

5456
ret = zbus_chan_pub(&cont_media_chan, &msg, K_NO_WAIT);
55-
ERR_CHK_MSG(ret, "zbus publication failed");
57+
if (ret) {
58+
LOG_ERR("zbus publication failed: %d", ret);
59+
}
5660

5761
return 0;
5862
}
@@ -75,7 +79,9 @@ int bt_content_ctrl_stop(struct bt_conn *conn)
7579
msg.event = MEDIA_STOP;
7680

7781
ret = zbus_chan_pub(&cont_media_chan, &msg, K_NO_WAIT);
78-
ERR_CHK_MSG(ret, "zbus publication failed");
82+
if (ret) {
83+
LOG_ERR("zbus publication failed: %d", ret);
84+
}
7985

8086
return 0;
8187
}

0 commit comments

Comments
 (0)