mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-02 16:20:31 +00:00
l2cap: don't call gap_connectable_control if Classic is not used
This commit is contained in:
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)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user