mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
less debug output
This commit is contained in:
parent
9d215ccf84
commit
7dfc85156f
10
src/hfp_ag.c
10
src/hfp_ag.c
@ -390,7 +390,7 @@ static int codecs_exchange_state_machine(hfp_connection_t * context){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(" -> State machine: CC\n");
|
// printf(" -> State machine: CC\n");
|
||||||
|
|
||||||
switch (context->command){
|
switch (context->command){
|
||||||
case HFP_CMD_AVAILABLE_CODECS:
|
case HFP_CMD_AVAILABLE_CODECS:
|
||||||
@ -447,7 +447,7 @@ static int codecs_exchange_state_machine(hfp_connection_t * context){
|
|||||||
static int hfp_ag_run_for_context_service_level_connection(hfp_connection_t * context){
|
static int hfp_ag_run_for_context_service_level_connection(hfp_connection_t * context){
|
||||||
if (context->state >= HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED) return 0;
|
if (context->state >= HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED) return 0;
|
||||||
int done = 0;
|
int done = 0;
|
||||||
printf(" -> State machine: SLC\n");
|
// printf(" -> State machine: SLC\n");
|
||||||
|
|
||||||
switch(context->command){
|
switch(context->command){
|
||||||
case HFP_CMD_SUPPORTED_FEATURES:
|
case HFP_CMD_SUPPORTED_FEATURES:
|
||||||
@ -539,7 +539,7 @@ static int hfp_ag_run_for_context_service_level_connection_queries(hfp_connectio
|
|||||||
int done = codecs_exchange_state_machine(context);
|
int done = codecs_exchange_state_machine(context);
|
||||||
if (done) return done;
|
if (done) return done;
|
||||||
|
|
||||||
printf(" -> State machine: SLC Queries\n");
|
// printf(" -> State machine: SLC Queries\n");
|
||||||
switch(context->command){
|
switch(context->command){
|
||||||
case HFP_CMD_QUERY_OPERATOR_SELECTION_NAME:
|
case HFP_CMD_QUERY_OPERATOR_SELECTION_NAME:
|
||||||
hfp_ag_report_network_operator_name_cmd(context->rfcomm_cid, context->network_operator);
|
hfp_ag_report_network_operator_name_cmd(context->rfcomm_cid, context->network_operator);
|
||||||
@ -587,7 +587,7 @@ static int hfp_ag_run_for_audio_connection(hfp_connection_t * context){
|
|||||||
// run codecs exchange
|
// run codecs exchange
|
||||||
int done = codecs_exchange_state_machine(context);
|
int done = codecs_exchange_state_machine(context);
|
||||||
if (done) return done;
|
if (done) return done;
|
||||||
printf(" -> State machine: Audio Connection\n");
|
// printf(" -> State machine: Audio Connection\n");
|
||||||
|
|
||||||
if (context->codecs_state != HFP_CODECS_EXCHANGED) return done;
|
if (context->codecs_state != HFP_CODECS_EXCHANGED) return done;
|
||||||
if (context->establish_audio_connection){
|
if (context->establish_audio_connection){
|
||||||
@ -604,7 +604,7 @@ static int incoming_call_state_machine(hfp_connection_t * context){
|
|||||||
if (!context->run_call_state_machine) return 0;
|
if (!context->run_call_state_machine) return 0;
|
||||||
if (context->state < HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED) return 0;
|
if (context->state < HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED) return 0;
|
||||||
|
|
||||||
printf(" -> State machine: Incoming Call\n");
|
// printf(" -> State machine: Incoming Call\n");
|
||||||
int done = 0;
|
int done = 0;
|
||||||
hfp_ag_indicator_t * indicator;
|
hfp_ag_indicator_t * indicator;
|
||||||
|
|
||||||
|
@ -174,6 +174,7 @@ static int stdin_process(struct data_source *ds){
|
|||||||
hfp_ag_set_use_in_band_ring_tone(1);
|
hfp_ag_set_use_in_band_ring_tone(1);
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
|
printf("Terminate HCI connection.\n");
|
||||||
gap_disconnect(handle);
|
gap_disconnect(handle);
|
||||||
default:
|
default:
|
||||||
show_usage();
|
show_usage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user