Skip to content

Commit e5dd556

Browse files
committed
Applications: nrf5340_audio: Updated prints
OCT-3127 Unsupported configs marked with "!" when using CONFIG_BT_AUDIO_EP_PRINT Signed-off-by: Kristoffer Skøien <[email protected]>
1 parent 599c6a6 commit e5dd556

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

applications/nrf5340_audio/src/bluetooth/bt_stream/unicast/unicast_client.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ static void set_color_if_supported(char *str, uint16_t bitfield, uint16_t mask)
503503
strcat(str, COLOR_GREEN);
504504
} else {
505505
strcat(str, COLOR_RED);
506+
strcat(str, "!");
506507
}
507508
}
508509

@@ -544,7 +545,7 @@ static bool caps_print_cb(struct bt_data *data, void *user_data)
544545

545546
if (data->type == BT_AUDIO_CODEC_CAP_TYPE_DURATION) {
546547
uint16_t dur_bit = sys_get_le16(data->data);
547-
char supported_dur[30] = "";
548+
char supported_dur[80] = "";
548549

549550
set_color_if_supported(supported_dur, dur_bit, BT_AUDIO_CODEC_CAP_DURATION_7_5);
550551
strcat(supported_dur, "7.5, ");
@@ -556,7 +557,7 @@ static bool caps_print_cb(struct bt_data *data, void *user_data)
556557

557558
if (data->type == BT_AUDIO_CODEC_CAP_TYPE_CHAN_COUNT) {
558559
uint16_t chan_bit = sys_get_le16(data->data);
559-
char supported_chan[120] = "";
560+
char supported_chan[140] = "";
560561

561562
set_color_if_supported(supported_chan, chan_bit, BT_AUDIO_CODEC_CAP_CHAN_COUNT_1);
562563
strcat(supported_chan, "1, ");

0 commit comments

Comments
 (0)