mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 04:43:36 +00:00
hfp: remove NOP from test sequences
This commit is contained in:
parent
0c3fa31007
commit
d794a752e8
@ -125,8 +125,6 @@ void simulate_test_sequence(char ** test_steps, int nr_test_steps){
|
||||
printf("\n---> NEXT STEP %s\n", cmd);
|
||||
if (strncmp(cmd, "AT", 2) == 0){
|
||||
inject_rfcomm_command_to_ag((uint8_t*)cmd, strlen(cmd));
|
||||
} else if (strncmp(cmd, "NOP", 3) == 0){
|
||||
inject_rfcomm_command_to_ag((uint8_t*)"NOP",3);
|
||||
} else {
|
||||
int expected_cmd = expected_rfcomm_command(cmd);
|
||||
if (!expected_cmd){
|
||||
@ -135,8 +133,10 @@ void simulate_test_sequence(char ** test_steps, int nr_test_steps){
|
||||
return;
|
||||
}
|
||||
printf("AG response verified %s\n\n", cmd);
|
||||
inject_rfcomm_command_to_ag((uint8_t*)"NOP",3);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void packet_handler(uint8_t * event, uint16_t event_size){
|
||||
|
@ -134,6 +134,7 @@ void simulate_test_sequence(char ** test_steps, int nr_test_steps){
|
||||
printf("\nError: Expected:'%s', but got:'%s'", cmd, (char *)get_rfcomm_payload());
|
||||
return;
|
||||
}
|
||||
inject_rfcomm_command_to_ag((uint8_t*)"NOP",3);
|
||||
}
|
||||
} else {
|
||||
inject_rfcomm_command_to_hf((uint8_t*)cmd, strlen(cmd));
|
||||
|
@ -110,7 +110,6 @@ hfp_test_item_t slc_cmds_tests[] = {
|
||||
const char * cc_test1[] = {
|
||||
"AT+BCC",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+BCS:1",
|
||||
"AT+BCS=1",
|
||||
"OK"
|
||||
@ -121,7 +120,6 @@ const char * cc_test2[] = {
|
||||
"OK",
|
||||
"AT+BCC",
|
||||
"OK",
|
||||
"NOP",
|
||||
"BCS:1",
|
||||
"AT+BCS=1",
|
||||
"OK"
|
||||
@ -133,11 +131,9 @@ const char * cc_test3[] = {
|
||||
"OK",
|
||||
"AT+BCC",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+BCS:1",
|
||||
"AT+BAC=2,3",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+BCS:3",
|
||||
"AT+BCS=3",
|
||||
"OK"
|
||||
@ -146,11 +142,9 @@ const char * cc_test3[] = {
|
||||
const char * cc_test4[] = {
|
||||
"AT+BCC",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+BCS:1",
|
||||
"AT+BAC=2,3",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+BCS:3",
|
||||
"AT+BCS=3",
|
||||
"OK"
|
||||
@ -167,7 +161,6 @@ hfp_test_item_t cc_tests[] = {
|
||||
/* Incoming call sequence */
|
||||
const char * ic_test1[] = {
|
||||
"+CIEV:3,1",
|
||||
"NOP",
|
||||
"BCS:1",
|
||||
"AT+BCS=1",
|
||||
"OK",
|
||||
@ -175,12 +168,9 @@ const char * ic_test1[] = {
|
||||
};
|
||||
|
||||
const char * ic_alert_test1[] = {
|
||||
"NOP",
|
||||
"ATA",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+CIEV:2,1", // call = 1
|
||||
"NOP",
|
||||
"+CIEV:3,0",
|
||||
};
|
||||
|
||||
@ -191,10 +181,8 @@ const char * ic_ag_terminates_call[] = {
|
||||
|
||||
const char * ic_hf_terminates_call[] = {
|
||||
// HF terminates call
|
||||
"NOP",
|
||||
"AT+CHUP",
|
||||
"OK",
|
||||
"NOP",
|
||||
"+CIEV:2,0"
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user