chipset/csr: avoid HCI_EVENT_IS_COMMAND_COMPLETE macro

This commit is contained in:
Matthias Ringwald 2022-05-09 21:47:25 +02:00
parent f78112560a
commit ae46c388c2

View File

@ -127,8 +127,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
state = 1;
}
break;
case HCI_EVENT_COMMAND_COMPLETE:
if (HCI_EVENT_IS_COMMAND_COMPLETE(packet, hci_read_local_version_information)){
if (hci_event_command_complete_get_command_opcode(packet) == HCI_OPCODE_HCI_READ_LOCAL_VERSION_INFORMATION){
local_version_information_handler(packet);
}
break;