mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
hci: reset context ok_pending + command
This commit is contained in:
parent
26594b9fc1
commit
52ad570876
@ -604,10 +604,6 @@ static void hfp_reset_voice_recognition(hfp_connection_t * hfp_connection){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void hfp_reset_context_flags(hfp_connection_t * hfp_connection){
|
void hfp_reset_context_flags(hfp_connection_t * hfp_connection){
|
||||||
if (!hfp_connection) return;
|
|
||||||
hfp_connection->ok_pending = 0;
|
|
||||||
hfp_connection->command = HFP_CMD_NONE;
|
|
||||||
|
|
||||||
hfp_connection->change_status_update_for_individual_ag_indicators = 0;
|
hfp_connection->change_status_update_for_individual_ag_indicators = 0;
|
||||||
|
|
||||||
hfp_connection->enable_extended_audio_gateway_error_report = 0;
|
hfp_connection->enable_extended_audio_gateway_error_report = 0;
|
||||||
@ -637,6 +633,9 @@ static hfp_connection_t * create_hfp_connection_context(void){
|
|||||||
hfp_connection->acl_handle = HCI_CON_HANDLE_INVALID;
|
hfp_connection->acl_handle = HCI_CON_HANDLE_INVALID;
|
||||||
hfp_connection->sco_handle = HCI_CON_HANDLE_INVALID;
|
hfp_connection->sco_handle = HCI_CON_HANDLE_INVALID;
|
||||||
|
|
||||||
|
hfp_connection->ok_pending = 0;
|
||||||
|
hfp_connection->command = HFP_CMD_NONE;
|
||||||
|
|
||||||
// parser
|
// parser
|
||||||
hfp_connection->found_equal_sign = false;
|
hfp_connection->found_equal_sign = false;
|
||||||
|
|
||||||
|
@ -1447,6 +1447,8 @@ static void hfp_hf_handle_rfcomm_command(hfp_connection_t * hfp_connection){
|
|||||||
case HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION:
|
case HFP_CMD_AG_ACTIVATE_VOICE_RECOGNITION:
|
||||||
break;
|
break;
|
||||||
case HFP_CMD_ERROR:
|
case HFP_CMD_ERROR:
|
||||||
|
hfp_connection->ok_pending = 0;
|
||||||
|
hfp_connection->command = HFP_CMD_NONE;
|
||||||
switch (hfp_connection->state){
|
switch (hfp_connection->state){
|
||||||
case HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED:
|
case HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED:
|
||||||
switch (hfp_connection->codecs_state){
|
switch (hfp_connection->codecs_state){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user