docs(display): use lv_display_delete_refr_timer to delete display timer (#5835)
This commit is contained in:
@@ -214,9 +214,7 @@ You can do this in the following way:
|
|||||||
.. code:: c
|
.. code:: c
|
||||||
|
|
||||||
/*Delete the original display refresh timer*/
|
/*Delete the original display refresh timer*/
|
||||||
lv_timer_delete(disp->refr_timer);
|
lv_display_delete_refr_timer(disp);
|
||||||
disp->refr_timer = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
/*Call this anywhere you want to refresh the dirty areas*/
|
/*Call this anywhere you want to refresh the dirty areas*/
|
||||||
_lv_display_refr_timer(NULL);
|
_lv_display_refr_timer(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user