Bluetooth: Audio: Fix ASE_{SNK,SRC}_COUNT=0 issues

Due to the LISTIFY macro for the counts, the value
cannot be 0.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-11-07 16:02:05 +01:00 committed by Carles Cufí
parent 529b4b2b1d
commit a34c2cd90a

View File

@ -2351,8 +2351,12 @@ BT_GATT_SERVICE_DEFINE(ascs_svc,
BT_GATT_PERM_WRITE_ENCRYPT,
NULL, ascs_cp_write, NULL),
BT_AUDIO_CCC(ascs_cp_cfg_changed),
#if CONFIG_BT_ASCS_ASE_SNK_COUNT > 0
LISTIFY(CONFIG_BT_ASCS_ASE_SNK_COUNT, BT_ASCS_ASE_SNK_DEFINE, (,)),
#endif /* CONFIG_BT_ASCS_ASE_SNK_COUNT > 0 */
#if CONFIG_BT_ASCS_ASE_SRC_COUNT > 0
LISTIFY(CONFIG_BT_ASCS_ASE_SRC_COUNT, BT_ASCS_ASE_SRC_DEFINE, (,)),
#endif /* CONFIG_BT_ASCS_ASE_SRC_COUNT > 0 */
);
static int control_point_notify(struct bt_conn *conn, const void *data, uint16_t len)