Skip to content

Commit fe2b3af

Browse files
committed
zephyr: port to 4.2.0+
1 parent b7438b4 commit fe2b3af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utility/HCIVirtualTransportZephyr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int HCIVirtualTransportZephyrClass::available()
5858
}
5959

6060
static struct net_buf *buf;
61-
buf = net_buf_get(__rx_queue, K_MSEC(10));
61+
buf = (struct net_buf*)k_fifo_get(__rx_queue, K_MSEC(10));
6262
if (!buf) {
6363
return 0;
6464
}

src/utility/HCIVirtualZephyrMacros.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void set_public_address(struct k_fifo *rx_queue)
2828
err = bt_send(buf);
2929
__ASSERT_NO_MSG(err == 0);
3030
/* Pull out the command complete. */
31-
buf = net_buf_get(rx_queue, K_SECONDS(10)); /* 10s == HCI_CMD_TIMEOUT */
31+
buf = (struct net_buf*)k_fifo_get(rx_queue, K_SECONDS(10)); /* 10s == HCI_CMD_TIMEOUT */
3232
struct bt_hci_evt_hdr *hdr;
3333
__ASSERT_NO_MSG(buf != NULL);
3434
__ASSERT_NO_MSG(buf->len >= sizeof(*hdr));

0 commit comments

Comments
 (0)