1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(tick) minor optmization on lv_tick_inc call test

See aa6641a6f1 (r51932352)
This commit is contained in:
Gabor Kiss-Vamosi 2021-06-09 15:20:39 +02:00
parent d0aaacafb6
commit b4305df574

View File

@ -83,7 +83,7 @@ LV_ATTRIBUTE_TIMER_HANDLER uint32_t lv_timer_handler(void)
uint32_t handler_start = lv_tick_get(); uint32_t handler_start = lv_tick_get();
if(lv_tick_get() == 0) { if(handler_start == 0) {
static uint32_t run_cnt = 0; static uint32_t run_cnt = 0;
run_cnt ++; run_cnt ++;
if(run_cnt > 100) { if(run_cnt > 100) {