Logging
This commit is contained in:
parent
dd78877844
commit
bd9ffbc8c7
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue