From 1f86aea766c09cefed21aa1bce9edf50958fa4d6 Mon Sep 17 00:00:00 2001 From: Jui-Chou Chung Date: Fri, 2 Feb 2024 19:44:19 +0800 Subject: [PATCH] applications: nrf5340_audio: Remove pause feature for bidir CIS Remove play/pause feature for CIS bidir mode. OCT-2892 Signed-off-by: Jui-Chou Chung --- applications/nrf5340_audio/unicast_client/main.c | 5 +++-- applications/nrf5340_audio/unicast_server/main.c | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/applications/nrf5340_audio/unicast_client/main.c b/applications/nrf5340_audio/unicast_client/main.c index 9bf18c4e61da..baab09308abe 100644 --- a/applications/nrf5340_audio/unicast_client/main.c +++ b/applications/nrf5340_audio/unicast_client/main.c @@ -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; } diff --git a/applications/nrf5340_audio/unicast_server/main.c b/applications/nrf5340_audio/unicast_server/main.c index f6f7dcb9821d..88081cbee4fa 100644 --- a/applications/nrf5340_audio/unicast_server/main.c +++ b/applications/nrf5340_audio/unicast_server/main.c @@ -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) {