Skip to content

Commit

Permalink
🩹 Fix TFT LVGL compile error
Browse files Browse the repository at this point in the history
Fixes regression from #24302
  • Loading branch information
thinkyhead committed May 21, 2023
1 parent 09247e7 commit 7563c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ void tft_lvgl_init() {
uint16_t usb_flash_loop = 1000;
#if ENABLED(MULTI_VOLUME) && !HAS_SD_HOST_DRIVE
SET_INPUT_PULLUP(SD_DETECT_PIN);
card.changeMedia(IS_SD_INSERTED() ? &card.media_driver_sdcard : &card.media_driver_usbFlash);
if (IS_SD_INSERTED())
card.changeMedia(&card.media_driver_sdcard);
else
card.changeMedia(&card.media_driver_usbFlash);
#endif
do {
card.media_driver_usbFlash.idle();
Expand Down

0 comments on commit 7563c89

Please sign in to comment.