Skip to content

Commit

Permalink
applications: nrf5340_audio: Remove pause feature for bidir CIS
Browse files Browse the repository at this point in the history
Remove play/pause feature for CIS bidir mode.
OCT-2892
Signed-off-by: Jui-Chou Chung <[email protected]>
  • Loading branch information
rick1082 authored and nordicjm committed Feb 5, 2024
1 parent 4192207 commit 1f86aea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions applications/nrf5340_audio/unicast_client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ static void button_msg_sub_thread(void)

switch (msg.button_pin) {
case BUTTON_PLAY_PAUSE:
if (IS_ENABLED(CONFIG_WALKIE_TALKIE_DEMO)) {
LOG_DBG("Play/pause not supported in walkie-talkie mode");
if (IS_ENABLED(CONFIG_STREAM_BIDIRECTIONAL)) {
LOG_WRN("Play/pause not supported in walkie-talkie and "
"bidirectional mode");
break;
}

Expand Down
7 changes: 4 additions & 3 deletions applications/nrf5340_audio/unicast_server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ static void button_msg_sub_thread(void)

switch (msg.button_pin) {
case BUTTON_PLAY_PAUSE:
if (IS_ENABLED(CONFIG_WALKIE_TALKIE_DEMO)) {
LOG_DBG("Play/pause not supported in walkie-talkie mode");
return;
if (IS_ENABLED(CONFIG_STREAM_BIDIRECTIONAL)) {
LOG_WRN("Play/pause not supported in walkie-talkie and "
"bidirectional mode");
break;
}

if (strm_state == STATE_STREAMING) {
Expand Down

0 comments on commit 1f86aea

Please sign in to comment.