From 0f394c5958d55f46c1f1fccaf96d4f681d5a15a6 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 14 Dec 2022 22:20:34 +0100 Subject: [PATCH] Bluetooth: Audio: Shell: Add missing metadata type In handle_metadata_update the metadata type was never copied, causing it to always be 0. Signed-off-by: Emil Gydesen --- subsys/bluetooth/shell/audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/shell/audio.c b/subsys/bluetooth/shell/audio.c index fba6228969b..bbbc604a826 100644 --- a/subsys/bluetooth/shell/audio.c +++ b/subsys/bluetooth/shell/audio.c @@ -739,6 +739,7 @@ static int handle_metadata_update(const char *meta_str, (void)memcpy(meta[i].value, default_preset->preset.codec.meta[i].data.data, default_preset->preset.codec.meta[i].data.data_len); + meta[i].data.type = default_preset->preset.codec.meta[i].data.type; meta[i].data.data_len = default_preset->preset.codec.meta[i].data.data_len; meta[i].data.data = meta[i].value; }