mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 15:40:16 +00:00
example/sco_demo_util: use hci_get_sco_packet_length_for_connection
This commit is contained in:
parent
9427aeb58c
commit
b8543c7abd
@ -640,7 +640,7 @@ void sco_demo_send(hci_con_handle_t sco_handle){
|
||||
|
||||
if (sco_handle == HCI_CON_HANDLE_INVALID) return;
|
||||
|
||||
int sco_packet_length = hci_get_sco_packet_length();
|
||||
int sco_packet_length = hci_get_sco_packet_length_for_connection(sco_handle);
|
||||
int sco_payload_length = sco_packet_length - 3;
|
||||
|
||||
hci_reserve_packet_buffer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user