mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 07:21:20 +00:00
remove useless preprocessor macro
This commit is contained in:
parent
05bea2a4d2
commit
b0a96cacda
@ -56,8 +56,6 @@
|
||||
#include <sys/stat.h> // for mode flags
|
||||
#endif
|
||||
|
||||
// #define HCI_DUMP_FULL_LOG
|
||||
|
||||
// BLUEZ hcidump
|
||||
typedef struct {
|
||||
uint16_t len;
|
||||
@ -91,7 +89,7 @@ static hcidump_hdr header_bluez;
|
||||
static pktlog_hdr header_packetlogger;
|
||||
static char time_string[40];
|
||||
static int max_nr_packets = -1;
|
||||
static int nr_packets = 0;
|
||||
// static int nr_packets = 0;
|
||||
#endif
|
||||
|
||||
void hci_dump_open(char *filename, hci_dump_format_t format){
|
||||
@ -116,7 +114,6 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t
|
||||
|
||||
if (dump_file < 0) return; // not activated yet
|
||||
|
||||
#ifndef HCI_DUMP_FULL_LOG
|
||||
// don't grow bigger than max_nr_packets
|
||||
if (dump_format != HCI_DUMP_STDOUT && max_nr_packets > 0){
|
||||
if (nr_packets >= max_nr_packets){
|
||||
@ -126,7 +123,6 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t
|
||||
}
|
||||
nr_packets++;
|
||||
}
|
||||
#endif
|
||||
|
||||
// get time
|
||||
struct timeval curr_time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user