bluetooth.h: fix typo

This commit is contained in:
Matthias Ringwald 2021-06-17 15:49:02 +02:00
parent 4e5d21eaa3
commit 965a4ccf8d
2 changed files with 4 additions and 4 deletions

View File

@ -150,7 +150,7 @@ typedef enum {
HCI_SERVICE_TYPE_NO_TRAFFIC = 0,
HCI_SERVICE_TYPE_BEST_EFFORT,
HCI_SERVICE_TYPE_GUARANTEED,
HCI_SERVICE_TyPE_INVALID,
HCI_SERVICE_TYPE_INVALID,
} hci_service_type_t;
/**

View File

@ -213,7 +213,7 @@ static hci_connection_t * create_connection_for_bd_addr_and_type(const bd_addr_t
#ifdef ENABLE_CLASSIC
conn->request_role = HCI_ROLE_INVALID;
conn->sniff_subrating_max_latency = 0xffff;
conn->qos_service_type = HCI_SERVICE_TyPE_INVALID;
conn->qos_service_type = HCI_SERVICE_TYPE_INVALID;
conn->link_key_type = INVALID_LINK_KEY;
btstack_run_loop_set_timer_handler(&conn->timeout, hci_connection_timeout_handler);
btstack_run_loop_set_timer_context(&conn->timeout, conn);
@ -4615,9 +4615,9 @@ static bool hci_run_general_pending_commands(void){
return true;
}
if (connection->qos_service_type != HCI_SERVICE_TyPE_INVALID){
if (connection->qos_service_type != HCI_SERVICE_TYPE_INVALID){
uint8_t service_type = (uint8_t) connection->qos_service_type;
connection->qos_service_type = HCI_SERVICE_TyPE_INVALID;
connection->qos_service_type = HCI_SERVICE_TYPE_INVALID;
hci_send_cmd(&hci_qos_setup, connection->con_handle, 0, service_type, connection->qos_token_rate, connection->qos_peak_bandwidth, connection->qos_latency, connection->qos_delay_variation);
return true;
}