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 <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
e5aad57fc5
commit
8f1c4f36ba
1 changed files with 5 additions and 5 deletions
|
@ -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,
|
return bt_gatt_attr_read(conn, attr, buf, len, offset, &has.active_index,
|
||||||
sizeof(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 */
|
#endif /* CONFIG_BT_HAS_PRESET_SUPPORT */
|
||||||
|
|
||||||
static ssize_t read_features(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf,
|
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));
|
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 */
|
/* Hearing Access Service GATT Attributes */
|
||||||
BT_GATT_SERVICE_DEFINE(has_svc,
|
BT_GATT_SERVICE_DEFINE(has_svc,
|
||||||
BT_GATT_PRIMARY_SERVICE(BT_UUID_HAS),
|
BT_GATT_PRIMARY_SERVICE(BT_UUID_HAS),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue