From 8291be9586b3144e75da5716430ddbe10844290a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 4 Aug 2019 22:01:08 +0200 Subject: [PATCH] wiced: fix compile --- platform/wiced/btstack_run_loop_wiced.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/wiced/btstack_run_loop_wiced.c b/platform/wiced/btstack_run_loop_wiced.c index 67867fd03..a8872d512 100644 --- a/platform/wiced/btstack_run_loop_wiced.c +++ b/platform/wiced/btstack_run_loop_wiced.c @@ -85,7 +85,8 @@ static void btstack_run_loop_wiced_add_timer(btstack_timer_source_t *ts){ btstack_linked_item_t *it; for (it = (btstack_linked_item_t *) &timers; it->next ; it = it->next){ // don't add timer that's already in there - if ((btstack_timer_source_t *) it->next == ts){ + btstack_timer_source_t * next = (btstack_timer_source_t *) it->next; + if (next == ts){ log_error( "btstack_run_loop_timer_add error: timer to add already in list!"); return; }