From db4e0e32c7088704577e175f69045554c06b1e13 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 9 Jan 2025 15:40:28 +0100 Subject: [PATCH] main: use ENABLE_ISO_TIMESYNC, allow compile without --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index d0f0f1a..e1db729 100644 --- a/src/main.c +++ b/src/main.c @@ -360,7 +360,10 @@ static int hci_uart_init(void) SYS_INIT(hci_uart_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); -#ifdef CONFIG_AUDIO_SYNC_TIMER_USES_RTC +#define ENABLE_ISO_TIMESYNC + +#ifdef ENABLE_ISO_TIMESYNC + #define TIMESYNC_GPIO DT_NODELABEL(timesync) #if DT_NODE_HAS_STATUS(TIMESYNC_GPIO, okay) @@ -464,7 +467,7 @@ int main(void) } } -#ifdef CONFIG_AUDIO_SYNC_TIMER_USES_RTC +#ifdef ENABLE_ISO_TIMESYNC /* Register iso_timesync command */ static struct bt_hci_raw_cmd_ext cmd_list = { .op = BT_OP(BT_OGF_VS, HCI_CMD_ISO_TIMESYNC),