mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-14 09:39:55 +00:00
test/le_audio: remove 'x' shutdown command
This commit is contained in:
parent
c7e63273d7
commit
9b23be8e18
@ -904,7 +904,6 @@ static void show_usage(void){
|
|||||||
#endif
|
#endif
|
||||||
printf("e - set broadcast code to 0x11111111111111111111111111111111\n");
|
printf("e - set broadcast code to 0x11111111111111111111111111111111\n");
|
||||||
printf("t - terminate BIS streams\n");
|
printf("t - terminate BIS streams\n");
|
||||||
printf("x - close files and exit\n");
|
|
||||||
printf("---\n");
|
printf("---\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -939,11 +938,6 @@ static void stdin_process(char c){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'x':
|
|
||||||
close_files();
|
|
||||||
printf("Shutdown...\n");
|
|
||||||
hci_power_control(HCI_POWER_OFF);
|
|
||||||
break;
|
|
||||||
case '\n':
|
case '\n':
|
||||||
case '\r':
|
case '\r':
|
||||||
break;
|
break;
|
||||||
|
@ -222,7 +222,6 @@ static enum {
|
|||||||
APP_IDLE,
|
APP_IDLE,
|
||||||
APP_W4_CREATE_BIG_COMPLETE,
|
APP_W4_CREATE_BIG_COMPLETE,
|
||||||
APP_STREAMING,
|
APP_STREAMING,
|
||||||
APP_W4_POWER_OFF,
|
|
||||||
} app_state = APP_IDLE;
|
} app_state = APP_IDLE;
|
||||||
|
|
||||||
// enumerate default codec configs
|
// enumerate default codec configs
|
||||||
@ -586,7 +585,6 @@ static void show_usage(void){
|
|||||||
printf("v - next codec variant\n");
|
printf("v - next codec variant\n");
|
||||||
printf("t - toggle sine / modplayer\n");
|
printf("t - toggle sine / modplayer\n");
|
||||||
printf("s - start broadcast\n");
|
printf("s - start broadcast\n");
|
||||||
printf("x - shutdown\n");
|
|
||||||
printf("---\n");
|
printf("---\n");
|
||||||
}
|
}
|
||||||
static void stdin_process(char c){
|
static void stdin_process(char c){
|
||||||
@ -632,20 +630,6 @@ static void stdin_process(char c){
|
|||||||
}
|
}
|
||||||
print_config();
|
print_config();
|
||||||
break;
|
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':
|
case 's':
|
||||||
if (app_state != APP_IDLE){
|
if (app_state != APP_IDLE){
|
||||||
printf("Cannot start broadcast - not in idle state\n");
|
printf("Cannot start broadcast - not in idle state\n");
|
||||||
|
@ -115,7 +115,6 @@ static enum {
|
|||||||
APP_W4_CIS_CREATED,
|
APP_W4_CIS_CREATED,
|
||||||
APP_STREAMING,
|
APP_STREAMING,
|
||||||
APP_IDLE,
|
APP_IDLE,
|
||||||
APP_SHUTDOWN
|
|
||||||
} app_state = APP_W4_WORKING;
|
} app_state = APP_W4_WORKING;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -361,10 +360,8 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
if (sink != NULL){
|
if (sink != NULL){
|
||||||
sink->stop_stream();
|
sink->stop_stream();
|
||||||
}
|
}
|
||||||
if (app_state != APP_SHUTDOWN){
|
|
||||||
start_scanning();
|
start_scanning();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case GAP_EVENT_ADVERTISING_REPORT:
|
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){
|
static void show_usage(void){
|
||||||
printf("\n--- LE Audio Unicast Sink Test Console ---\n");
|
printf("\n--- LE Audio Unicast Sink Test Console ---\n");
|
||||||
printf("x - close files and exit\n");
|
|
||||||
printf("s - start scanning\n");
|
printf("s - start scanning\n");
|
||||||
#ifdef HAVE_LC3PLUS
|
#ifdef HAVE_LC3PLUS
|
||||||
printf("q - use LC3plus decoder if 10 ms ISO interval is used\n");
|
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;
|
request_lc3plus_decoder = true;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case 'x':
|
|
||||||
app_state = APP_SHUTDOWN;
|
|
||||||
close_files();
|
|
||||||
printf("Shutdown...\n");
|
|
||||||
hci_power_control(HCI_POWER_OFF);
|
|
||||||
break;
|
|
||||||
case '\n':
|
case '\n':
|
||||||
case '\r':
|
case '\r':
|
||||||
break;
|
break;
|
||||||
|
@ -180,7 +180,6 @@ static enum {
|
|||||||
APP_IDLE,
|
APP_IDLE,
|
||||||
APP_W4_CIS_COMPLETE,
|
APP_W4_CIS_COMPLETE,
|
||||||
APP_STREAMING,
|
APP_STREAMING,
|
||||||
APP_W4_POWER_OFF,
|
|
||||||
} app_state = APP_W4_WORKING;
|
} app_state = APP_W4_WORKING;
|
||||||
|
|
||||||
// enumerate default codec configs
|
// enumerate default codec configs
|
||||||
@ -556,20 +555,6 @@ static void stdin_process(char c){
|
|||||||
}
|
}
|
||||||
print_config();
|
print_config();
|
||||||
break;
|
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':
|
case 's':
|
||||||
if (app_state != APP_IDLE){
|
if (app_state != APP_IDLE){
|
||||||
printf("Cannot start advertising - not in idle state\n");
|
printf("Cannot start advertising - not in idle state\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user