mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-18 19:21:54 +00:00
hci: forward sco packet to sco transport for HAVE_SCO_TRANSPORT
This commit is contained in:
parent
ed325439e7
commit
43149fc963
10
src/hci.c
10
src/hci.c
@ -836,14 +836,22 @@ int hci_send_sco_packet_buffer(int size){
|
||||
}
|
||||
|
||||
hci_dump_packet( HCI_SCO_DATA_PACKET, 0, packet, size);
|
||||
int err = hci_stack->hci_transport->send_packet(HCI_SCO_DATA_PACKET, packet, size);
|
||||
|
||||
#ifdef HAVE_SCO_TRANSPORT
|
||||
hci_stack->sco_transport->send_packet(packet, size);
|
||||
hci_release_packet_buffer();
|
||||
hci_emit_transport_packet_sent();
|
||||
|
||||
return 0;
|
||||
#else
|
||||
int err = hci_stack->hci_transport->send_packet(HCI_SCO_DATA_PACKET, packet, size);
|
||||
if (hci_transport_synchronous()){
|
||||
hci_release_packet_buffer();
|
||||
hci_emit_transport_packet_sent();
|
||||
}
|
||||
|
||||
return err;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user