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 SMHRambo committed Jul 17, 2023
1 parent c58be9d commit a324532
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 a324532

Please sign in to comment.