1
0
Fork 0

Better header logging

This commit is contained in:
Shawn Nock 2019-07-24 22:03:30 -05:00
parent bd9ffbc8c7
commit 468cf8c865
1 changed files with 4 additions and 2 deletions

View File

@ -531,8 +531,10 @@ static void unproc_thread(void) {
goto next; goto next;
} }
LOG_HEXDUMP_DBG((uint8_t*)&hdr, sizeof(hdr), "Header"); //LOG_HEXDUMP_DBG((uint8_t*)&hdr, sizeof(hdr), "Header");
LOG_DBG("Header: seq %d, ack %d, rel: %s, crc16: %s", hdr.seq, hdr.ack,
hdr.is_reliable ? "true" : "false",
hdr.crc_after_payload ? "true" : "false");
struct net_buf *rx_buf = NULL; struct net_buf *rx_buf = NULL;
if (h5.link_state < ACTIVE && hdr.packet_type != HCI_3WIRE_LINK_PKT) { if (h5.link_state < ACTIVE && hdr.packet_type != HCI_3WIRE_LINK_PKT) {