From 3cb0d7ad6f1001a399352cf405679a5d8049da8c Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Mon, 28 Aug 2023 15:09:01 +0200 Subject: [PATCH] samples: Bluetooth: TMAP Peripheral fix appearance Use the defind value, BT_APPEARANCE_WEARABLE_AUDIO_DEVICE_EARBUD, instead of the hard coded "magic numbers". Signed-off-by: Emil Gydesen --- samples/bluetooth/tmap_peripheral/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/bluetooth/tmap_peripheral/src/main.c b/samples/bluetooth/tmap_peripheral/src/main.c index 3b7c891be64..59aa8c70ef0 100644 --- a/samples/bluetooth/tmap_peripheral/src/main.c +++ b/samples/bluetooth/tmap_peripheral/src/main.c @@ -52,7 +52,8 @@ static bool peer_is_ums; static const struct bt_data ad[] = { BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)), - BT_DATA_BYTES(BT_DATA_GAP_APPEARANCE, 0x09, 0x41), /* Appearance - Earbud */ + BT_DATA_BYTES(BT_DATA_GAP_APPEARANCE, + BT_BYTES_LIST_LE16(BT_APPEARANCE_WEARABLE_AUDIO_DEVICE_EARBUD)), BT_DATA_BYTES(BT_DATA_UUID16_SOME, BT_UUID_16_ENCODE(BT_UUID_ASCS_VAL), BT_UUID_16_ENCODE(BT_UUID_CAS_VAL), BT_UUID_16_ENCODE(BT_UUID_TMAS_VAL)), #if defined(CONFIG_BT_CSIP_SET_MEMBER)