Skip to content

Commit 5af553d

Browse files
LingaoMcarlescufi
authored andcommitted
bluetooth: audio: pacs: Fix missing CONFIG_
`BT_PAC_SRC_LOC_WRITEABLE` should be `CONFIG_BT_PAC_SRC_LOC_WRITEABLE` Signed-off-by: Lingao Meng <[email protected]>
1 parent a9972f3 commit 5af553d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

subsys/bluetooth/audio/pacs.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ BT_GATT_SERVICE_DEFINE(pacs_svc,
456456
snk_loc_write,
457457
#else
458458
NULL,
459-
#endif /* BT_PAC_SRC_LOC_WRITEABLE */
459+
#endif /* CONFIG_BT_PAC_SNK_LOC_WRITEABLE */
460460
NULL),
461461
BT_GATT_CCC(snk_loc_cfg_changed,
462462
BT_GATT_PERM_READ | BT_GATT_PERM_WRITE_ENCRYPT),
@@ -476,11 +476,11 @@ BT_GATT_SERVICE_DEFINE(pacs_svc,
476476
BT_GATT_PERM_READ_ENCRYPT |
477477
BT_GATT_PERM_WRITE_ENCRYPT,
478478
src_loc_read,
479-
#if defined(BT_PAC_SRC_LOC_WRITEABLE)
479+
#if defined(CONFIG_BT_PAC_SRC_LOC_WRITEABLE)
480480
src_loc_write,
481481
#else
482482
NULL,
483-
#endif /* BT_PAC_SRC_LOC_WRITEABLE */
483+
#endif /* CONFIG_BT_PAC_SRC_LOC_WRITEABLE */
484484
NULL),
485485
BT_GATT_CCC(src_loc_cfg_changed,
486486
BT_GATT_PERM_READ | BT_GATT_PERM_WRITE_ENCRYPT),
@@ -510,7 +510,7 @@ static struct k_work_delayable *bt_pacs_get_work(enum bt_audio_dir dir)
510510
#if defined(CONFIG_BT_PAC_SRC)
511511
case BT_AUDIO_DIR_SOURCE:
512512
return &srcs_work;
513-
#endif /* CONFIG_BT_PAC_SNK */
513+
#endif /* CONFIG_BT_PAC_SRC */
514514
default:
515515
return NULL;
516516
}
@@ -527,7 +527,7 @@ static struct k_work_delayable *bt_pacs_get_loc_work(enum bt_audio_dir dir)
527527
#if defined(CONFIG_BT_PAC_SRC)
528528
case BT_AUDIO_DIR_SOURCE:
529529
return &srcs_loc_work;
530-
#endif /* CONFIG_BT_PAC_SNK */
530+
#endif /* CONFIG_BT_PAC_SRC */
531531
default:
532532
return NULL;
533533
}

0 commit comments

Comments
 (0)