From 93c01169a8f9a697985cd85e4bd9a414e2d8b611 Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Thu, 1 May 2025 08:52:53 -0500 Subject: [PATCH] chore(display): Remove unused variable warning --- components/display/include/display.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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.