avoid warning about incorrect try to avoid warning for link_type

This commit is contained in:
Matthias Ringwald 2017-05-18 22:03:43 +02:00
parent 6306068faf
commit 0014e02c94

View File

@ -1603,13 +1603,12 @@ static void event_handler(uint8_t *packet, int size){
bd_addr_t addr; bd_addr_t addr;
bd_addr_type_t addr_type; bd_addr_type_t addr_type;
uint8_t link_type;
hci_con_handle_t handle; hci_con_handle_t handle;
hci_connection_t * conn; hci_connection_t * conn;
int i; int i;
#ifdef ENABLE_CLASSIC
// warnings uint8_t link_type;
(void) link_type; #endif
// log_info("HCI:EVENT:%02x", hci_event_packet_get_type(packet)); // log_info("HCI:EVENT:%02x", hci_event_packet_get_type(packet));