diff --git a/samples/bluetooth/hci_uart/src/main.c b/samples/bluetooth/hci_uart/src/main.c index 4f9e95f3d4b..67644ae8e41 100644 --- a/samples/bluetooth/hci_uart/src/main.c +++ b/samples/bluetooth/hci_uart/src/main.c @@ -78,7 +78,7 @@ static bool valid_type(uint8_t type) static uint32_t get_len(const uint8_t *hdr_buf, uint8_t type) { switch (type) { - case BT_BUF_CMD: + case H4_CMD: return ((const struct bt_hci_cmd_hdr *)hdr_buf)->param_len; case H4_ISO: return sys_le16_to_cpu(((const struct bt_hci_iso_data_hdr *)hdr_buf)->slen);