fix compile

This commit is contained in:
Matthias Ringwald 2015-11-08 17:44:24 +01:00
parent 44e4cb79e0
commit 1fa0871725

View File

@ -91,7 +91,7 @@ static int dump_file = -1;
#ifndef EMBEDDED
static int dump_format;
static uint8_t header_bluez[hcidump_hdr_size];
static uint8_t header_packetlogger[pcklog_hdr_size];
static uint8_t header_packetlogger[pktlog_hdr_size];
static char time_string[40];
static int max_nr_packets = -1;
static int nr_packets = 0;
@ -194,8 +194,8 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t
bt_store_16( header_bluez, 0, 1 + len);
header_bluez[2] = in;
header_bluez[3] = 0;
bt_store_32( header_bluez.ts_sec, 4, curr_time.tv_sec);
bt_store_32( header_bluez.ts_usec, 8, curr_time.tv_usec);
bt_store_32( header_bluez, 4, curr_time.tv_sec);
bt_store_32( header_bluez, 8, curr_time.tv_usec);
header_bluez[12] = packet_type;
write (dump_file, header_bluez, hcidump_hdr_size);
write (dump_file, packet, len );
@ -232,7 +232,7 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t
default:
return;
}
write (dump_file, &header_packetlogger, pktlog_hdr_size) );
write (dump_file, &header_packetlogger, pktlog_hdr_size);
write (dump_file, packet, len );
break;