example/sco_demo_util: use hci_get_sco_packet_length_for_connection

This commit is contained in:
Matthias Ringwald 2023-08-31 15:07:21 +02:00
parent 9427aeb58c
commit b8543c7abd

View File

@ -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();