example/sco_demo_util: validate sco_handle in sco_demo_send

This commit is contained in:
Matthias Ringwald 2019-02-01 15:53:39 +01:00
parent 5db50aaad5
commit e1de95bec8

View File

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