mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
hci: mark more code as Classic only
This commit is contained in:
parent
1c9e5e9dcc
commit
0e6f3837b0
@ -1861,6 +1861,7 @@ static void event_handler(uint8_t *packet, int size){
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef ENABLE_CLASSIC
|
||||||
case HCI_EVENT_ROLE_CHANGE:
|
case HCI_EVENT_ROLE_CHANGE:
|
||||||
if (packet[2]) break; // status != 0
|
if (packet[2]) break; // status != 0
|
||||||
handle = little_endian_read_16(packet, 3);
|
handle = little_endian_read_16(packet, 3);
|
||||||
@ -1868,6 +1869,7 @@ static void event_handler(uint8_t *packet, int size){
|
|||||||
if (!conn) break; // no conn
|
if (!conn) break; // no conn
|
||||||
conn->role = packet[9];
|
conn->role = packet[9];
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case HCI_EVENT_TRANSPORT_PACKET_SENT:
|
case HCI_EVENT_TRANSPORT_PACKET_SENT:
|
||||||
// release packet buffer only for asynchronous transport and if there are not further fragements
|
// release packet buffer only for asynchronous transport and if there are not further fragements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user