examples/hfp ag: store incoming dev. address, remove open sbc file

This commit is contained in:
Milanka Ringwald 2016-07-23 23:13:17 +02:00
parent 1e98a36782
commit 66c297f98d
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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();
}