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

fix(sysmon): performance measurement (#5361)

This commit is contained in:
Gabor Kiss-Vamosi 2024-01-18 03:36:41 +01:00 committed by GitHub
parent a7737a936a
commit b48fd4863f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -328,11 +328,12 @@ void _lv_display_refr_timer(lv_timer_t * tmr)
if(tmr) {
disp_refr = tmr->user_data;
/**
* Ensure the timer does not run again automatically.
/* Ensure the timer does not run again automatically.
* This is done before refreshing in case refreshing invalidates something else.
*/
* However if the performance monitor is enabled keep the timer running to count the FPS.*/
#if !(defined(LV_USE_PERF_MONITOR) && LV_USE_PERF_MONITOR)
lv_timer_pause(tmr);
#endif
}
else {
disp_refr = lv_display_get_default();