From 8f1c4f36ba328e4e2041beb93554bb3412486e74 Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Thu, 12 May 2022 10:54:01 +0200 Subject: [PATCH] Bluetooth: has: Fix compliation warning Fix unused `ccc_cfg_changed` function warning that shows up when preset support is disabled. Signed-off-by: Mariusz Skamra --- subsys/bluetooth/audio/has.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subsys/bluetooth/audio/has.c b/subsys/bluetooth/audio/has.c index 5ed53d9eacd..f7481d12158 100644 --- a/subsys/bluetooth/audio/has.c +++ b/subsys/bluetooth/audio/has.c @@ -46,6 +46,11 @@ static ssize_t read_active_preset_index(struct bt_conn *conn, const struct bt_ga return bt_gatt_attr_read(conn, attr, buf, len, offset, &has.active_index, sizeof(has.active_index)); } + +static void ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value) +{ + BT_DBG("attr %p value 0x%04x", attr, value); +} #endif /* CONFIG_BT_HAS_PRESET_SUPPORT */ static ssize_t read_features(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, @@ -61,11 +66,6 @@ static ssize_t read_features(struct bt_conn *conn, const struct bt_gatt_attr *at sizeof(has.features)); } -static void ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value) -{ - BT_DBG("attr %p value 0x%04x", attr, value); -} - /* Hearing Access Service GATT Attributes */ BT_GATT_SERVICE_DEFINE(has_svc, BT_GATT_PRIMARY_SERVICE(BT_UUID_HAS),