From 8797feba2f85c05bfbac406103c6f18431e7d36f Mon Sep 17 00:00:00 2001 From: Shawn Nock Date: Thu, 18 Jul 2019 12:28:00 -0400 Subject: [PATCH] Start the h5 threads from main instead of via uart device init --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index fc5f26f..e774b58 100644 --- a/src/main.c +++ b/src/main.c @@ -704,8 +704,6 @@ static int h5_open(struct device *unused) uart_irq_callback_set(hci_uart_dev, bt_uart_isr); - h5_init(); - uart_irq_rx_enable(hci_uart_dev); return 0; @@ -901,6 +899,8 @@ void main(void) bt_enable_raw(&h5.host_queue); struct net_buf *buf = NULL; + h5_init(); + while (true) { buf = net_buf_get(&h5.host_queue, K_FOREVER);