From 495db15d42c52f312cea537411b91a791970743a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 16 Mar 2018 11:52:41 +0100 Subject: [PATCH] fix compile --- example/att_delayed_read_response.c | 3 ++- port/posix-h4/btstack_config.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/att_delayed_read_response.c b/example/att_delayed_read_response.c index f84298433..6298184a9 100644 --- a/example/att_delayed_read_response.c +++ b/example/att_delayed_read_response.c @@ -129,7 +129,7 @@ static void att_invalidate_value(struct btstack_timer_source *ts){ */ /* LISTING_START(att_read_delay): ATT Read Delay Handler */ - +#ifdef ENABLE_ATT_DELAYED_READ_RESPONSE static void att_update_value(struct btstack_timer_source *ts){ UNUSED(ts); value_ready = 1; @@ -145,6 +145,7 @@ static void att_update_value(struct btstack_timer_source *ts){ btstack_run_loop_set_timer(&att_timer, ATT_VALUE_DELAY_MS); btstack_run_loop_add_timer(&att_timer); } +#endif /* LISTING_END */ diff --git a/port/posix-h4/btstack_config.h b/port/posix-h4/btstack_config.h index 84411e5ec..3e1d2191c 100644 --- a/port/posix-h4/btstack_config.h +++ b/port/posix-h4/btstack_config.h @@ -22,6 +22,7 @@ #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS #define ENABLE_LE_DATA_CHANNELS #define ENABLE_LE_DATA_LENGTH_EXTENSION +#define ENABLE_ATT_DELAYED_READ_RESPONSE #define ENABLE_LOG_ERROR #define ENABLE_LOG_INFO #define ENABLE_SCO_OVER_HCI