From 8ade2a8bf574e205c05f00313522c919db7837a4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 4 Mar 2019 14:49:54 +0100 Subject: [PATCH] example/audio_duplex: fix compile warning --- example/audio_duplex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/audio_duplex.c b/example/audio_duplex.c index fe4cd331b..102c94cc4 100644 --- a/example/audio_duplex.c +++ b/example/audio_duplex.c @@ -117,7 +117,6 @@ static void audio_playback(int16_t * pcm_buffer, uint16_t num_samples_to_write){ } static void start_loopback(btstack_timer_source_t * ts){ - const btstack_audio_sink_t * audio_sink = btstack_audio_sink_get_instance(); const btstack_audio_source_t * audio_source = btstack_audio_source_get_instance(); @@ -139,6 +138,8 @@ static void start_loopback(btstack_timer_source_t * ts){ btstack_run_loop_set_timer_handler(ts, &stop_loopback); btstack_run_loop_set_timer(ts, TEST_START_STOP_INTERVAL); btstack_run_loop_add_timer(ts); +#else + UNUSED(ts); #endif }