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

fieat(timer) check if lv_tick_inc is called

This commit is contained in:
Gabor Kiss-Vamosi 2021-06-08 14:10:57 +02:00
parent 0c0dc8ea30
commit aa6641a6f1

View File

@ -83,6 +83,15 @@ LV_ATTRIBUTE_TIMER_HANDLER uint32_t lv_timer_handler(void)
uint32_t handler_start = lv_tick_get();
if(lv_tick_get() == 0) {
static uint32_t run_cnt = 0;
run_cnt ++;
if(run_cnt > 100) {
run_cnt = 0;
LV_LOG_WARN("It seems lv_tick_inc() is not called.");
}
}
/*Run all timer from the list*/
lv_timer_t * next;
do {