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

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);