1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

chore(timer): fix warning (#4199)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech 2023-05-02 14:25:12 +08:00 committed by GitHub
parent ac84ae23de
commit 4c4b7858b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,9 +311,15 @@ static bool lv_timer_exec(lv_timer_t * timer)
if(timer->repeat_count > 0) timer->repeat_count--;
timer->last_run = lv_tick_get();
TIMER_TRACE("calling timer callback: %p", *((void **)&timer->timer_cb));
if(timer->timer_cb && original_repeat_count != 0) timer->timer_cb(timer);
if(!timer_deleted) TIMER_TRACE("timer callback %p finished", *((void **)&timer->timer_cb));
else TIMER_TRACE("timer callback finished");
if(!timer_deleted) {
TIMER_TRACE("timer callback %p finished", *((void **)&timer->timer_cb));
}
else {
TIMER_TRACE("timer callback finished");
}
LV_ASSERT_MEM_INTEGRITY();
exec = true;