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

docs(display): use lv_display_delete_refr_timer to delete display timer (#5835)

This commit is contained in:
Jake Grossman 2024-03-12 02:38:38 -05:00 committed by GitHub
parent eace5e1072
commit 0a9d86dd7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,9 +214,7 @@ You can do this in the following way:
.. code:: c
/*Delete the original display refresh timer*/
lv_timer_delete(disp->refr_timer);
disp->refr_timer = NULL;
lv_display_delete_refr_timer(disp);
/*Call this anywhere you want to refresh the dirty areas*/
_lv_display_refr_timer(NULL);