diff --git a/example/hfp_ag_demo.c b/example/hfp_ag_demo.c index 2f6b05b72..4a9234bb4 100644 --- a/example/hfp_ag_demo.c +++ b/example/hfp_ag_demo.c @@ -280,7 +280,7 @@ static void show_usage(void){ printf("\n--- Bluetooth HFP Audiogateway (AG) unit Test Console %s ---\n", bd_addr_to_str(iut_address)); printf("---\n"); - printf("a - establish HFP connection to PTS module\n"); + printf("a - establish HFP connection to PTS module %s\n", bd_addr_to_str(device_addr)); // printf("A - release HFP connection to PTS module\n"); printf("b - establish AUDIO connection\n"); @@ -592,7 +592,7 @@ static void send_sco_data(void){ static int count = 0; count++; - if ((count & SCO_REPORT_PERIOD) == 0) printf("Sent %u\n", count); + if ((count % SCO_REPORT_PERIOD) == 0) printf("Sent %u\n", count); } static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t event_size){ diff --git a/example/hfp_hf_demo.c b/example/hfp_hf_demo.c index 008cccc20..693d07e10 100644 --- a/example/hfp_hf_demo.c +++ b/example/hfp_hf_demo.c @@ -85,7 +85,7 @@ static void show_usage(void){ printf("\n--- Bluetooth HFP Hands-Free (HF) unit Test Console ---\n"); printf("---\n"); - printf("a - establish SLC connection to device\n"); + printf("a - establish SLC connection to device %s\n", bd_addr_to_str(device_addr)); printf("A - release SLC connection to device\n"); printf("b - establish Audio connection\n"); diff --git a/example/hsp_ag_demo.c b/example/hsp_ag_demo.c index 6966245a3..bdc6598d3 100644 --- a/example/hsp_ag_demo.c +++ b/example/hsp_ag_demo.c @@ -215,8 +215,7 @@ static void send_sco_data(void){ hci_request_sco_can_send_now_event(); static int count = 0; - if ((count & SCO_REPORT_PERIOD)) return; - printf("SCO packets sent: %u\n", count); + if ((count % SCO_REPORT_PERIOD) == 0) printf("Sent %u\n", count); } static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t event_size){ diff --git a/example/hsp_hs_demo.c b/example/hsp_hs_demo.c index ec2d1bbd3..d2874f9db 100644 --- a/example/hsp_hs_demo.c +++ b/example/hsp_hs_demo.c @@ -216,8 +216,7 @@ static void send_sco_data(void){ static int count = 0; count++; - if ((count & SCO_REPORT_PERIOD)) return; - printf("SCO packets sent: %u\n", count); + if ((count % SCO_REPORT_PERIOD) == 0) printf("Sent %u\n", count); } static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t event_size){