Skip to content

Commit

Permalink
🩹 Fix TFT LVGL compile error (MarlinFirmware#25865)
Browse files Browse the repository at this point in the history
Fixes regression from MarlinFirmware#24302
  • Loading branch information
thinkyhead authored and ernisv committed Nov 23, 2023
1 parent 698b52b commit 3c0e112
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 3c0e112

Please sign in to comment.