Skip to content

Commit 279283f

Browse files
authored
chore(display): Remove unused variable warning (#418)
1 parent de510bf commit 279283f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/display/include/display.hpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,7 @@ template <typename Pixel> class Display : public BaseComponent {
274274
* (to draw to it with something other than LVGL) and want to switch
275275
* back to the LVGL gui. Normally you should not call this function.
276276
*/
277-
void force_refresh() const {
278-
auto disp = lv_display_get_default();
279-
lv_obj_invalidate(lv_scr_act());
280-
}
277+
void force_refresh() const { lv_obj_invalidate(lv_scr_act()); }
281278

282279
/**
283280
* @brief Get pointer to main display buffer for custom writing.

0 commit comments

Comments
 (0)