Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
solawc committed Apr 19, 2022
1 parent 18ccafb commit c1505b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,11 +1569,9 @@ void setup() {
#if HAS_TFT_LVGL_UI
#if ENABLED(SDSUPPORT)
#if ENABLED(MULTI_VOLUME)
// card.changeMedia(&card.media_driver_sdcard);
card.changeMedia(&card.media_driver_sdcard);
#endif

if (!card.isMounted()) SETUP_RUN(card.mount()); // Mount SD to load graphics and fonts

#endif
SETUP_RUN(tft_lvgl_init());
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/mks_ui/draw_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ lv_obj_t* lv_screen_create(DISP_STATE newScreenType, const char *title) {
if (titleLabel)
lv_obj_set_style(titleLabel, &tft_style_label_rel);

lv_refr_now(lv_refr_get_disp_refreshing());
lv_refr_now(lv_refr_get_disp_refreshing()); // 立即刷新屏幕

return scr;
}
Expand Down

0 comments on commit c1505b2

Please sign in to comment.