mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-27 23:37:25 +00:00
test/pts: fix build
This commit is contained in:
parent
d223509138
commit
dbcc09a91a
@ -349,15 +349,15 @@ static void stdin_process(char cmd){
|
|||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
printf("aAVR Status ready for audio input\n");
|
printf("aAVR Status ready for audio input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_ready_for_audio(acl_handle);
|
hfp_ag_enhanced_voice_recognition_report_ready_for_audio(acl_handle);
|
||||||
break;
|
break;
|
||||||
case '3':
|
case '3':
|
||||||
printf("aAVR Play sound\n");
|
printf("aAVR Play sound\n");
|
||||||
hfp_ag_enhanced_voice_recognition_play_sound(acl_handle);
|
hfp_ag_enhanced_voice_recognition_report_sending_audio(acl_handle);
|
||||||
break;
|
break;
|
||||||
case '4':
|
case '4':
|
||||||
printf("aAVR Processing Input\n");
|
printf("aAVR Processing Input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_processing_input(acl_handle);
|
hfp_ag_enhanced_voice_recognition_report_processing_input(acl_handle);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '5':
|
case '5':
|
||||||
@ -367,58 +367,58 @@ static void stdin_process(char cmd){
|
|||||||
|
|
||||||
case '6':{
|
case '6':{
|
||||||
hfp_voice_recognition_message_t msg = {
|
hfp_voice_recognition_message_t msg = {
|
||||||
0xAB13, 0, 1, (uint8_t *) "test"
|
0xAB13, 0, 1, "test"
|
||||||
};
|
};
|
||||||
printf("aAVR Msg, Status ready_for_input\n");
|
printf("aAVR Msg, Status ready_for_input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_READY_TO_ACCEPT_AUDIO_INPUT, msg);
|
hfp_ag_enhanced_voice_recognition_send_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_READY_TO_ACCEPT_AUDIO_INPUT, msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case '7':{
|
case '7':{
|
||||||
// changed type, change iD
|
// changed type, change iD
|
||||||
hfp_voice_recognition_message_t msg = {
|
hfp_voice_recognition_message_t msg = {
|
||||||
0xAB14, 1, 1, (uint8_t *) "test"
|
0xAB14, 1, 1, "test"
|
||||||
};
|
};
|
||||||
printf("aAVR Msg Processing Input\n");
|
printf("aAVR Msg Processing Input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_IS_PROCESSING_AUDIO_INPUT, msg);
|
hfp_ag_enhanced_voice_recognition_send_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_IS_PROCESSING_AUDIO_INPUT, msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case '8':{
|
case '8':{
|
||||||
// replace op, leave id and type
|
// replace op, leave id and type
|
||||||
hfp_voice_recognition_message_t msg = {
|
hfp_voice_recognition_message_t msg = {
|
||||||
0xAB13, 0, 2, (uint8_t *) "test"
|
0xAB13, 0, 2, "test"
|
||||||
};
|
};
|
||||||
printf("aAVR Msg Processing Input\n");
|
printf("aAVR Msg Processing Input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_IS_PROCESSING_AUDIO_INPUT, msg);
|
hfp_ag_enhanced_voice_recognition_send_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_IS_PROCESSING_AUDIO_INPUT, msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case '9':{
|
case '9':{
|
||||||
// replace op, leave id and type
|
// replace op, leave id and type
|
||||||
hfp_voice_recognition_message_t msg = {
|
hfp_voice_recognition_message_t msg = {
|
||||||
0xAB13, 0, 3, (uint8_t *) "test"
|
0xAB13, 0, 3, "test"
|
||||||
};
|
};
|
||||||
printf("aAVR Msg Processing Input\n");
|
printf("aAVR Msg Processing Input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_IS_PROCESSING_AUDIO_INPUT, msg);
|
hfp_ag_enhanced_voice_recognition_send_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_IS_PROCESSING_AUDIO_INPUT, msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case '*':{
|
case '*':{
|
||||||
hfp_voice_recognition_message_t msg = {
|
hfp_voice_recognition_message_t msg = {
|
||||||
0xAB13, 2, 1, (uint8_t *) "test"
|
0xAB13, 2, 1, "test"
|
||||||
};
|
};
|
||||||
printf("aAVR Msg, Status ready_for_input\n");
|
printf("aAVR Msg, Status ready_for_input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_READY_TO_ACCEPT_AUDIO_INPUT, msg);
|
hfp_ag_enhanced_voice_recognition_send_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_READY_TO_ACCEPT_AUDIO_INPUT, msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case '@':{
|
case '@':{
|
||||||
hfp_voice_recognition_message_t msg = {
|
hfp_voice_recognition_message_t msg = {
|
||||||
0xAB13, 3, 1, (uint8_t *) "test"
|
0xAB13, 3, 1, "test"
|
||||||
};
|
};
|
||||||
printf("aAVR Msg, Status ready_for_input\n");
|
printf("aAVR Msg, Status ready_for_input\n");
|
||||||
hfp_ag_enhanced_voice_recognition_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_READY_TO_ACCEPT_AUDIO_INPUT, msg);
|
hfp_ag_enhanced_voice_recognition_send_message(acl_handle, HFP_VOICE_RECOGNITION_STATE_AG_READY_TO_ACCEPT_AUDIO_INPUT, msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user