pbap_client_demo: add 'x' abort command

This commit is contained in:
Matthias Ringwald 2018-10-09 17:29:12 +02:00
parent 9eb7827db8
commit 948889a2b3

View File

@ -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;