test: fix compile warnings

This commit is contained in:
Matthias Ringwald 2022-03-22 22:30:55 +01:00
parent 026ebaf7f2
commit bb90a366cb
3 changed files with 3 additions and 6 deletions

View File

@ -230,6 +230,7 @@ static int btstack_audio_portaudio_sink_init(
const PaDeviceInfo *outputDeviceInfo;
outputDeviceInfo = Pa_GetDeviceInfo( theOutputParameters.device );
log_info("PortAudio: sink device: %s", outputDeviceInfo->name);
UNUSED(outputDeviceInfo);
/* -- setup stream -- */
err = Pa_OpenStream(
@ -296,6 +297,7 @@ static int btstack_audio_portaudio_source_init(
const PaDeviceInfo *inputDeviceInfo;
inputDeviceInfo = Pa_GetDeviceInfo( theInputParameters.device );
log_info("PortAudio: source device: %s", inputDeviceInfo->name);
UNUSED(inputDeviceInfo);
/* -- setup stream -- */
err = Pa_OpenStream(

View File

@ -178,8 +178,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
/* LISTING_PAUSE */
bd_addr_t event_addr;
uint8_t rfcomm_channel_nr;
uint16_t mtu;
switch (packet_type) {
case HCI_EVENT_PACKET:
@ -201,9 +199,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
case RFCOMM_EVENT_INCOMING_CONNECTION:
// data: event (8), len(8), address(48), channel (8), rfcomm_cid (16)
rfcomm_event_incoming_connection_get_bd_addr(packet, event_addr);
rfcomm_channel_nr = rfcomm_event_incoming_connection_get_server_channel(packet);
rfcomm_channel_id = rfcomm_event_incoming_connection_get_rfcomm_cid(packet);
log_info("RFCOMM channel %u requested for %s\n", rfcomm_channel_nr, bd_addr_to_str(event_addr));
rfcomm_accept_connection(rfcomm_channel_id);
break;
@ -213,8 +209,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
log_info("RFCOMM channel open failed, status %u\n", rfcomm_event_channel_opened_get_status(packet));
} else {
rfcomm_channel_id = rfcomm_event_channel_opened_get_rfcomm_cid(packet);
mtu = rfcomm_event_channel_opened_get_max_frame_size(packet);
log_info("RFCOMM channel open succeeded. New RFCOMM Channel ID %u, max frame size %u\n", rfcomm_channel_id, mtu);
}
break;
case RFCOMM_EVENT_CAN_SEND_NOW:

View File

@ -28,6 +28,7 @@ COMMON = \
btstack_memory_pool.c \
device_id_server.c \
avdtp.c \
a2dp.c \
a2dp_source.c \
a2dp_sink.c \
avdtp.c \