wiced: fix compile

This commit is contained in:
Matthias Ringwald 2019-08-04 22:01:08 +02:00
parent f0ca6dea14
commit 8291be9586

View File

@ -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;
}