mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-03 01:20:35 +00:00
example/hsp_hs_demo: fix sending of sco packets
This commit is contained in:
parent
08a78038ba
commit
0ab6c459c0
@ -181,6 +181,8 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
|||||||
|
|
||||||
switch (packet_type){
|
switch (packet_type){
|
||||||
case HCI_SCO_DATA_PACKET:
|
case HCI_SCO_DATA_PACKET:
|
||||||
|
// forward received SCO / audio packets to SCO component
|
||||||
|
if (READ_SCO_CONNECTION_HANDLE(event) != sco_handle) break;
|
||||||
sco_demo_receive(event, event_size);
|
sco_demo_receive(event, event_size);
|
||||||
break;
|
break;
|
||||||
case HCI_EVENT_PACKET:
|
case HCI_EVENT_PACKET:
|
||||||
@ -190,7 +192,6 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
|||||||
show_usage();
|
show_usage();
|
||||||
break;
|
break;
|
||||||
case HCI_EVENT_SCO_CAN_SEND_NOW:
|
case HCI_EVENT_SCO_CAN_SEND_NOW:
|
||||||
if (READ_SCO_CONNECTION_HANDLE(event) != sco_handle) break;
|
|
||||||
sco_demo_send(sco_handle);
|
sco_demo_send(sco_handle);
|
||||||
break;
|
break;
|
||||||
case HCI_EVENT_HSP_META:
|
case HCI_EVENT_HSP_META:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user