mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 06:32:43 +00:00
return true for can send SCO packet now if synchronous flow control is not enabled
This commit is contained in:
parent
021517889e
commit
ed361f5fa1
@ -401,6 +401,7 @@ int hci_can_send_prepared_sco_packet_now(hci_con_handle_t con_handle){
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (!hci_stack->synchronous_flow_control_enabled) return 1;
|
||||
return hci_number_free_sco_slots_for_handle(con_handle) > 0;
|
||||
}
|
||||
|
||||
|
@ -587,6 +587,8 @@ typedef enum hci_init_state{
|
||||
HCI_INIT_W4_WRITE_SIMPLE_PAIRING_MODE,
|
||||
HCI_INIT_WRITE_PAGE_TIMEOUT,
|
||||
HCI_INIT_W4_WRITE_PAGE_TIMEOUT,
|
||||
HCI_INIT_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
|
||||
HCI_INIT_W4_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
|
||||
|
||||
HCI_INIT_WRITE_CLASS_OF_DEVICE,
|
||||
HCI_INIT_W4_WRITE_CLASS_OF_DEVICE,
|
||||
@ -670,6 +672,7 @@ typedef struct {
|
||||
uint16_t acl_data_packet_length;
|
||||
uint8_t sco_packets_total_num;
|
||||
uint8_t sco_data_packet_length;
|
||||
uint8_t synchronous_flow_control_enabled;
|
||||
uint8_t le_acl_packets_total_num;
|
||||
uint16_t le_data_packets_length;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user