Skip to content

Commit 11a96f5

Browse files
authored
Merge pull request #111 from iysheng/master
【修复】放开宏 ENABLE_LOG_INFO 时编译错误
2 parents 50903ba + 03df2fa commit 11a96f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/art_pi_factory/packages/btstack-v0.0.1/platform/posix/btstack_run_loop_posix.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,13 @@ static bool btstack_run_loop_posix_remove_timer(btstack_timer_source_t *ts){
124124

125125
static void btstack_run_loop_posix_dump_timer(void){
126126
btstack_linked_item_t *it;
127+
#ifdef ENABLE_LOG_INFO
128+
int i = 0;
129+
#endif
127130
for (it = (btstack_linked_item_t *) timers; it ; it = it->next){
128131
#ifdef ENABLE_LOG_INFO
129132
btstack_timer_source_t *ts = (btstack_timer_source_t*) it;
130-
log_info("timer %u (%p): timeout %u\n", i, ts, ts->timeout);
133+
log_info("timer %u (%p): timeout %u\n", i++, ts, ts->timeout);
131134
#endif
132135
}
133136
}

0 commit comments

Comments
 (0)