test/pts: fix build avdtp_source_test and avrcp_test

This commit is contained in:
Matthias Ringwald 2021-01-18 16:33:06 +01:00
parent b6f261d172
commit 8df3391879
2 changed files with 5 additions and 2 deletions

View File

@ -128,7 +128,10 @@ static int sine_phase;
static uint8_t sdp_avdtp_source_service_buffer[150];
static avdtp_stream_endpoint_context_t sc;
static struct {
avdtp_stream_endpoint_t * local_stream_endpoint;
uint32_t sampling_frequency;
} sc;
static btstack_sbc_encoder_state_t sbc_encoder_state;
static uint8_t is_cmd_triggered_localy = 0;

View File

@ -418,7 +418,7 @@ static void avdtp_source_connection_establishment_packet_handler(uint8_t packet_
case BTSTACK_EVENT_STATE:
if (btstack_event_state_get_state(packet) != HCI_STATE_WORKING) return;
printf("Create AVDTP Source connection to addr %s.\n", bd_addr_to_str(device_addr));
status = a2dp_source_establish_stream(device_addr, media_tracker.local_seid, &media_tracker.a2dp_cid);
status = a2dp_source_establish_stream(device_addr, &media_tracker.a2dp_cid);
if (status != ERROR_CODE_SUCCESS){
printf("Could not perform command, status 0x%2x\n", status);
}