diff --git a/example/sco_demo_util.c b/example/sco_demo_util.c index dffef7bb0..cedd43636 100644 --- a/example/sco_demo_util.c +++ b/example/sco_demo_util.c @@ -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();