mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-31 09:32:57 +00:00
hfp_ag: use explicit cases for vra_state_requested
This commit is contained in:
parent
9a8f78c1e2
commit
6e13e408eb
@ -891,7 +891,8 @@ static int hfp_ag_voice_recognition_state_machine(hfp_connection_t * hfp_connect
|
|||||||
hfp_connection->vra_state_requested = hfp_connection->vra_state;
|
hfp_connection->vra_state_requested = hfp_connection->vra_state;
|
||||||
return done;
|
return done;
|
||||||
|
|
||||||
default:
|
case HFP_VRA_W2_SEND_VOICE_RECOGNITION_ACTIVATED:
|
||||||
|
case HFP_VRA_W2_SEND_VOICE_RECOGNITION_OFF:
|
||||||
done = hfp_ag_send_voice_recognition_cmd(hfp_connection, hfp_connection->ag_activate_voice_recognition_value);
|
done = hfp_ag_send_voice_recognition_cmd(hfp_connection, hfp_connection->ag_activate_voice_recognition_value);
|
||||||
if (done == 0){
|
if (done == 0){
|
||||||
hfp_connection->vra_state_requested = hfp_connection->vra_state;
|
hfp_connection->vra_state_requested = hfp_connection->vra_state;
|
||||||
@ -904,6 +905,10 @@ static int hfp_ag_voice_recognition_state_machine(hfp_connection_t * hfp_connect
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
log_error("state %u", hfp_connection->vra_state_requested);
|
||||||
|
btstack_assert(false);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user