diff --git a/components/display/include/display.hpp b/components/display/include/display.hpp index 89b620e89..bfb2a27a3 100644 --- a/components/display/include/display.hpp +++ b/components/display/include/display.hpp @@ -274,10 +274,7 @@ template class Display : public BaseComponent { * (to draw to it with something other than LVGL) and want to switch * back to the LVGL gui. Normally you should not call this function. */ - void force_refresh() const { - auto disp = lv_display_get_default(); - lv_obj_invalidate(lv_scr_act()); - } + void force_refresh() const { lv_obj_invalidate(lv_scr_act()); } /** * @brief Get pointer to main display buffer for custom writing.