mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 15:39:59 +00:00
pbap_client_demo: add 'x' abort command
This commit is contained in:
parent
9eb7827db8
commit
948889a2b3
@ -100,6 +100,7 @@ static void show_usage(void){
|
||||
printf("g - Lookup contact with number '%s'\n", phone_number);
|
||||
printf("p - authenticate using password '0000'\n");
|
||||
printf("r - set path to 'telecom'\n");
|
||||
printf("x - abort operation\n");
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
@ -136,6 +137,10 @@ static void stdin_process(char c){
|
||||
printf("[+] Set path to 'telecom'\n");
|
||||
pbap_set_phonebook(pbap_cid, "telecom");
|
||||
break;
|
||||
case 'x':
|
||||
printf("[+] Abort'\n");
|
||||
pbap_abort(pbap_cid);
|
||||
break;
|
||||
default:
|
||||
show_usage();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user