1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-04-17 02:42:33 +00:00

l2cap: don't call gap_connectable_control if Classic is not used

This commit is contained in:
Matthias Ringwald 2016-10-19 15:39:31 +02:00
parent 09e9d05bab
commit be005ed60d

@ -187,7 +187,9 @@ void l2cap_init(void){
hci_register_acl_packet_handler(&l2cap_acl_handler); hci_register_acl_packet_handler(&l2cap_acl_handler);
#ifdef ENABLE_CLASSIC
gap_connectable_control(0); // no services yet gap_connectable_control(0); // no services yet
#endif
} }
void l2cap_register_packet_handler(void (*handler)(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)){ void l2cap_register_packet_handler(void (*handler)(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)){