test/le_audio: remove 'x' shutdown command

This commit is contained in:
Matthias Ringwald 2022-10-31 11:39:31 +01:00
parent c7e63273d7
commit 9b23be8e18
4 changed files with 1 additions and 48 deletions

View File

@ -904,7 +904,6 @@ static void show_usage(void){
#endif
printf("e - set broadcast code to 0x11111111111111111111111111111111\n");
printf("t - terminate BIS streams\n");
printf("x - close files and exit\n");
printf("---\n");
}
@ -939,11 +938,6 @@ static void stdin_process(char c){
break;
}
break;
case 'x':
close_files();
printf("Shutdown...\n");
hci_power_control(HCI_POWER_OFF);
break;
case '\n':
case '\r':
break;

View File

@ -222,7 +222,6 @@ static enum {
APP_IDLE,
APP_W4_CREATE_BIG_COMPLETE,
APP_STREAMING,
APP_W4_POWER_OFF,
} app_state = APP_IDLE;
// enumerate default codec configs
@ -586,7 +585,6 @@ static void show_usage(void){
printf("v - next codec variant\n");
printf("t - toggle sine / modplayer\n");
printf("s - start broadcast\n");
printf("x - shutdown\n");
printf("---\n");
}
static void stdin_process(char c){
@ -632,20 +630,6 @@ static void stdin_process(char c){
}
print_config();
break;
case 'x':
#ifdef COUNT_MODE
printf("Send statistic:\n");
{
uint16_t i;
for (i=0;i<MAX_PACKET_INTERVAL_BINS_MS;i++){
printf("%2u: %5u\n", i, send_time_bins[i]);
}
}
#endif
printf("Shutdown...\n");
app_state = APP_W4_POWER_OFF;
hci_power_control(HCI_POWER_OFF);
break;
case 's':
if (app_state != APP_IDLE){
printf("Cannot start broadcast - not in idle state\n");

View File

@ -115,7 +115,6 @@ static enum {
APP_W4_CIS_CREATED,
APP_STREAMING,
APP_IDLE,
APP_SHUTDOWN
} app_state = APP_W4_WORKING;
//
@ -361,9 +360,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
if (sink != NULL){
sink->stop_stream();
}
if (app_state != APP_SHUTDOWN){
start_scanning();
}
start_scanning();
}
break;
case GAP_EVENT_ADVERTISING_REPORT:
@ -671,7 +668,6 @@ static void iso_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p
static void show_usage(void){
printf("\n--- LE Audio Unicast Sink Test Console ---\n");
printf("x - close files and exit\n");
printf("s - start scanning\n");
#ifdef HAVE_LC3PLUS
printf("q - use LC3plus decoder if 10 ms ISO interval is used\n");
@ -690,12 +686,6 @@ static void stdin_process(char c){
request_lc3plus_decoder = true;
break;
#endif
case 'x':
app_state = APP_SHUTDOWN;
close_files();
printf("Shutdown...\n");
hci_power_control(HCI_POWER_OFF);
break;
case '\n':
case '\r':
break;

View File

@ -180,7 +180,6 @@ static enum {
APP_IDLE,
APP_W4_CIS_COMPLETE,
APP_STREAMING,
APP_W4_POWER_OFF,
} app_state = APP_W4_WORKING;
// enumerate default codec configs
@ -556,20 +555,6 @@ static void stdin_process(char c){
}
print_config();
break;
case 'x':
#ifdef COUNT_MODE
printf("Send statistic:\n");
{
uint16_t i;
for (i=0;i<MAX_PACKET_INTERVAL_BINS_MS;i++){
printf("%2u: %5u\n", i, send_time_bins[i]);
}
}
#endif
printf("Shutdown...\n");
app_state = APP_W4_POWER_OFF;
hci_power_control(HCI_POWER_OFF);
break;
case 's':
if (app_state != APP_IDLE){
printf("Cannot start advertising - not in idle state\n");