mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 15:41:00 +00:00
example/sco_demo_util: validate sco_handle in sco_demo_send
This commit is contained in:
parent
5db50aaad5
commit
e1de95bec8
@ -465,7 +465,7 @@ void sco_report(void){
|
||||
|
||||
void sco_demo_send(hci_con_handle_t sco_handle){
|
||||
|
||||
if (!sco_handle) return;
|
||||
if (sco_handle == HCI_CON_HANDLE_INVALID) return;
|
||||
|
||||
int sco_packet_length = hci_get_sco_packet_length();
|
||||
int sco_payload_length = sco_packet_length - 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user