From 212d7460b51305c7cacec5e89401f03abaee2092 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 3 May 2023 12:27:08 +0200 Subject: [PATCH] example: fix build with make --- example/Makefile.inc | 3 ++- src/mesh/mesh_lower_transport.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/example/Makefile.inc b/example/Makefile.inc index 6e30ed8c6..2f2eafb62 100644 --- a/example/Makefile.inc +++ b/example/Makefile.inc @@ -55,6 +55,7 @@ COMMON += \ hci.c \ hci_cmd.c \ hci_dump.c \ + hci_event.c \ l2cap.c \ l2cap_signaling.c \ btstack_audio.c \ @@ -485,7 +486,7 @@ hid_mouse_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstack_r a2dp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} avrcp.o avrcp_controller.o avrcp_target.o a2dp_source_demo.c ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ -a2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o avrcp_controller.o avrcp_target.o btstack_resample.o btstack_sample_rate_compensation.o a2dp_sink_demo.c +a2dp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avrcp.o avrcp_controller.o avrcp_target.o avrcp_cover_art_client.o goep_client.o obex_parser.o obex_message_builder.o btstack_resample.o btstack_sample_rate_compensation.o a2dp_sink_demo.c ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ avrcp_browsing_client: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${AVRCP_OBJ} ${AVDTP_OBJ} avrcp_browsing_client.c diff --git a/src/mesh/mesh_lower_transport.c b/src/mesh/mesh_lower_transport.c index 55bf697ed..efb321dfa 100644 --- a/src/mesh/mesh_lower_transport.c +++ b/src/mesh/mesh_lower_transport.c @@ -1000,6 +1000,8 @@ bool mesh_lower_transport_can_send_to_dest(uint16_t dest){ #ifdef MAX_NR_MESH_OUTGOING_SEGMENTED_MESSAGES // limit number of parallel outgoing messages if configured if (num_messages >= MAX_NR_MESH_OUTGOING_SEGMENTED_MESSAGES) return false; +#else + UNUSED(num_messages); #endif return true; }