mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-17 16:14:15 +00:00
examples/hfp ag: store incoming dev. address, remove open sbc file
This commit is contained in:
parent
1e98a36782
commit
66c297f98d
@ -593,7 +593,8 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even
|
||||
break;
|
||||
case HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED:
|
||||
handle = hfp_subevent_service_level_connection_established_get_con_handle(event);
|
||||
printf("Service level connection established.\n");
|
||||
hfp_subevent_service_level_connection_established_get_bd_addr(event, device_addr);
|
||||
printf("Service level connection established from %s.\n", bd_addr_to_str(device_addr));
|
||||
break;
|
||||
case HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED:
|
||||
printf("Service level connection released.\n");
|
||||
|
@ -221,7 +221,6 @@ static void sco_demo_init_mSBC(void){
|
||||
|
||||
write_wav_header(wav_writer_state.wav_file, sample_rate, num_channels, num_samples, bytes_per_sample);
|
||||
|
||||
wav_init(SCO_MSBC_FILENAME);
|
||||
hfp_msbc_init();
|
||||
sco_demo_fill_audio_frame();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user