We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de510bf commit 279283fCopy full SHA for 279283f
components/display/include/display.hpp
@@ -274,10 +274,7 @@ template <typename Pixel> class Display : public BaseComponent {
274
* (to draw to it with something other than LVGL) and want to switch
275
* back to the LVGL gui. Normally you should not call this function.
276
*/
277
- void force_refresh() const {
278
- auto disp = lv_display_get_default();
279
- lv_obj_invalidate(lv_scr_act());
280
- }
+ void force_refresh() const { lv_obj_invalidate(lv_scr_act()); }
281
282
/**
283
* @brief Get pointer to main display buffer for custom writing.
0 commit comments