mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-01 10:13:29 +00:00
test/le_audio: stop plc timer on disconnect/big stop
This commit is contained in:
parent
9b23be8e18
commit
823ca66c5a
@ -669,6 +669,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
}
|
||||
case GAP_SUBEVENT_BIG_SYNC_STOPPED:
|
||||
printf("BIG Sync stopped, big_handle 0x%02x\n", gap_subevent_big_sync_stopped_get_big_handle(packet));
|
||||
btstack_run_loop_remove_timer(&next_packet_timer);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -930,6 +931,7 @@ static void stdin_process(char c){
|
||||
case APP_STREAMING:
|
||||
case APP_W4_BIG_SYNC_ESTABLISHED:
|
||||
app_state = APP_IDLE;
|
||||
btstack_run_loop_remove_timer(&next_packet_timer);
|
||||
close_files();
|
||||
printf("Terminate BIG SYNC\n");
|
||||
gap_big_sync_terminate(big_handle);
|
||||
|
@ -353,6 +353,8 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
||||
if (hci_event_disconnection_complete_get_connection_handle(packet) == remote_handle){
|
||||
printf("Disconnected, back to scanning\n");
|
||||
// stop timer
|
||||
btstack_run_loop_remove_timer(&next_packet_timer);
|
||||
// close files
|
||||
close_files();
|
||||
// stop playback
|
||||
|
Loading…
x
Reference in New Issue
Block a user