diff --git a/src/bluetooth.h b/src/bluetooth.h index 61e1fa7da..a689ae0f7 100644 --- a/src/bluetooth.h +++ b/src/bluetooth.h @@ -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; /** diff --git a/src/hci.c b/src/hci.c index 832e1275b..eee90ec46 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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; }