hci: fix event logging in hci_emit_event

This commit is contained in:
Matthias Ringwald 2016-02-11 15:41:10 +01:00
parent 4195f5cd7c
commit 300c1ba48b

View File

@ -2902,7 +2902,7 @@ int hci_send_cmd(const hci_cmd_t *cmd, ...){
static void hci_emit_event(uint8_t * event, uint16_t size, int dump){
// dump packet
if (dump) {
hci_dump_packet( HCI_EVENT_PACKET, 0, event, sizeof(event));
hci_dump_packet( HCI_EVENT_PACKET, 0, event, size);
}
// dispatch to all event handlers