Commit 9c323d68 authored by Benjamin Lucke's avatar Benjamin Lucke Committed by Maureen Helm
Browse files

Bluetooth: BAP: Shell: Fixed some bap shell cmds

Added missing initialization for cmd_stream_qos and cmd_sync_broadcast.

Signed-off-by: default avatarBenjamin Lucke <git@lucke.tech>
parent 9fd0185c
Loading
Loading
Loading
Loading
+2 −2
Changes for subsys/bluetooth/audio/shell/bap.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1163,7 +1163,7 @@ static int cmd_stream_qos(const struct shell *sh, size_t argc, char *argv[])
{
	struct bt_audio_codec_qos *qos;
	unsigned long interval;
	int err;
	int err = 0;

	if (default_stream == NULL) {
		shell_print(sh, "No stream selected");
@@ -2282,7 +2282,7 @@ static int cmd_sync_broadcast(const struct shell *sh, size_t argc, char *argv[])
	struct bt_bap_stream *streams[ARRAY_SIZE(broadcast_sink_streams)];
	uint32_t bis_bitfield;
	size_t stream_cnt;
	int err;
	int err = 0;

	bis_bitfield = 0;
	stream_cnt = 0U;