1
0
Fork 0
This commit is contained in:
Shawn Nock 2019-07-18 15:12:36 -04:00
parent dd78877844
commit bd9ffbc8c7
1 changed files with 6 additions and 1 deletions

View File

@ -636,6 +636,7 @@ static void tx_thread(void)
while ((buf = net_buf_get(&h5.controller_queue, K_MSEC(100)))) { while ((buf = net_buf_get(&h5.controller_queue, K_MSEC(100)))) {
bt_send(buf); bt_send(buf);
} }
LOG_DBG("controller_queue empty");
/* buf is dequeued from tx_queue and queued to unack /* buf is dequeued from tx_queue and queued to unack
* queue. * queue.
@ -907,7 +908,11 @@ void main(void)
h5_init(); h5_init();
while (true) { while (true) {
buf = net_buf_get(&h5.host_queue, K_FOREVER); buf = net_buf_get(&h5.host_queue, K_MSEC(1000));
if (!buf) {
LOG_WRN("host_queue is empty");
continue;
}
switch (h5.link_state) { switch (h5.link_state) {
case UNINIT: case UNINIT: