mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
removed HCI debug printfs
This commit is contained in:
parent
aff8ac5c98
commit
efbae73623
@ -38,7 +38,6 @@ static int read_pos;
|
|||||||
// static uint8_t hci_event_buffer[255+2]; // maximal payload + 2 bytes header
|
// static uint8_t hci_event_buffer[255+2]; // maximal payload + 2 bytes header
|
||||||
static uint8_t hci_packet[400]; // bigger than largest packet
|
static uint8_t hci_packet[400]; // bigger than largest packet
|
||||||
|
|
||||||
|
|
||||||
// prototypes
|
// prototypes
|
||||||
static int h4_open(void *transport_config){
|
static int h4_open(void *transport_config){
|
||||||
hci_uart_config = (hci_uart_config_t*) transport_config;
|
hci_uart_config = (hci_uart_config_t*) transport_config;
|
||||||
@ -119,10 +118,6 @@ static int h4_close(){
|
|||||||
|
|
||||||
static int h4_send_cmd_packet(uint8_t *packet, int size){
|
static int h4_send_cmd_packet(uint8_t *packet, int size){
|
||||||
if (hci_transport_h4->ds.fd == 0) return -1;
|
if (hci_transport_h4->ds.fd == 0) return -1;
|
||||||
|
|
||||||
printf("CMD: ");
|
|
||||||
hexdump(packet, size);
|
|
||||||
|
|
||||||
char *data = (char*) packet;
|
char *data = (char*) packet;
|
||||||
char packet_type = HCI_COMMAND_DATA_PACKET;
|
char packet_type = HCI_COMMAND_DATA_PACKET;
|
||||||
|
|
||||||
@ -143,9 +138,6 @@ static int h4_send_cmd_packet(uint8_t *packet, int size){
|
|||||||
static int h4_send_acl_packet(uint8_t *packet, int size){
|
static int h4_send_acl_packet(uint8_t *packet, int size){
|
||||||
if (hci_transport_h4->ds.fd == 0) return -1;
|
if (hci_transport_h4->ds.fd == 0) return -1;
|
||||||
|
|
||||||
printf("ACL> ");
|
|
||||||
hexdump(packet, size);
|
|
||||||
|
|
||||||
char *data = (char*) packet;
|
char *data = (char*) packet;
|
||||||
char packet_type = HCI_ACL_DATA_PACKET;
|
char packet_type = HCI_ACL_DATA_PACKET;
|
||||||
|
|
||||||
@ -205,11 +197,7 @@ static int h4_process(struct data_source *ds, int ready) {
|
|||||||
h4_state = H4_W4_EVENT_PAYLOAD;
|
h4_state = H4_W4_EVENT_PAYLOAD;
|
||||||
break;
|
break;
|
||||||
case H4_W4_EVENT_PAYLOAD:
|
case H4_W4_EVENT_PAYLOAD:
|
||||||
printf("EVT: ");
|
hci_dump_packet( HCI_EVENT_PACKET, 1, hci_packet, read_pos);
|
||||||
hexdump(hci_packet, read_pos);
|
|
||||||
|
|
||||||
hci_dump_packet( HCI_EVENT_PACKET, 1, hci_packet, read_pos);
|
|
||||||
|
|
||||||
event_packet_handler(hci_packet, read_pos);
|
event_packet_handler(hci_packet, read_pos);
|
||||||
h4_state = H4_W4_PACKET_TYPE;
|
h4_state = H4_W4_PACKET_TYPE;
|
||||||
read_pos = 0;
|
read_pos = 0;
|
||||||
@ -220,9 +208,6 @@ static int h4_process(struct data_source *ds, int ready) {
|
|||||||
h4_state = H4_W4_ACL_PAYLOAD;
|
h4_state = H4_W4_ACL_PAYLOAD;
|
||||||
break;
|
break;
|
||||||
case H4_W4_ACL_PAYLOAD:
|
case H4_W4_ACL_PAYLOAD:
|
||||||
printf("<ACL ");
|
|
||||||
hexdump(hci_packet, read_pos);
|
|
||||||
|
|
||||||
hci_dump_packet( HCI_ACL_DATA_PACKET, 1, hci_packet, read_pos);
|
hci_dump_packet( HCI_ACL_DATA_PACKET, 1, hci_packet, read_pos);
|
||||||
|
|
||||||
acl_packet_handler(hci_packet, read_pos);
|
acl_packet_handler(hci_packet, read_pos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user