Bluetooth: TBS: Fixed missing guard of handle_string_long_read
The function is optionally used by the module, and should be
guarded to avoid compiler warnings about unused functions.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
diff --git a/subsys/bluetooth/audio/tbs_client.c b/subsys/bluetooth/audio/tbs_client.c
index 1c1b3b6..9c7c704 100644
--- a/subsys/bluetooth/audio/tbs_client.c
+++ b/subsys/bluetooth/audio/tbs_client.c
@@ -617,6 +617,12 @@
return BT_GATT_ITER_CONTINUE;
}
+#if defined(CONFIG_BT_TBS_CLIENT_BEARER_PROVIDER_NAME) || \
+ defined(CONFIG_BT_TBS_CLIENT_BEARER_UCI) || \
+ defined(CONFIG_BT_TBS_CLIENT_BEARER_URI_SCHEMES_SUPPORTED_LIST) || \
+ defined(CONFIG_BT_TBS_CLIENT_INCOMING_URI) || \
+ defined(CONFIG_BT_TBS_CLIENT_INCOMING_CALL) || \
+ defined(CONFIG_BT_TBS_CLIENT_CALL_FRIENDLY_NAME)
/* Common function to read tbs_client strings which may require long reads */
static uint8_t handle_string_long_read(struct bt_conn *conn, uint8_t err,
struct bt_gatt_read_params *params,
@@ -717,6 +723,13 @@
return BT_GATT_ITER_STOP;
}
+#endif /* CONFIG_BT_TBS_CLIENT_BEARER_PROVIDER_NAME || \
+ * CONFIG_BT_TBS_CLIENT_BEARER_UCI || \
+ * CONFIG_BT_TBS_CLIENT_BEARER_URI_SCHEMES_SUPPORTED_LIST || \
+ * CONFIG_BT_TBS_CLIENT_INCOMING_URI || \
+ * CONFIG_BT_TBS_CLIENT_INCOMING_CALL || \
+ * CONFIG_BT_TBS_CLIENT_CALL_FRIENDLY_NAME \
+ */
#if defined(CONFIG_BT_TBS_CLIENT_CP_PROCEDURES)
static int tbs_client_common_call_control(struct bt_conn *conn,