Skip to content

Commit

Permalink
dont forget to always set sd2Card
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv committed Mar 13, 2021
1 parent c0fcd10 commit 4aa381a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Marlin/src/sd/cardreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ CardReader::CardReader() {
#elif DEFAULT_SHARED_VOLUME == USB_FLASH_DRIVE
changeMedia(&sd2card_UsbFlashDrive);
#endif
#elif ENABLED(USB_FLASH_DRIVE_SUPPORT)
changeMedia(&sd2card_UsbFlashDrive);
#elif ENABLED(SDIO_SUPPORT)
changeMedia(&sd2card_sdio);
#else
changeMedia(&sd2card_sd_spi);
#endif
#if ENABLED(SDCARD_SORT_ALPHA)
sort_count = 0;
Expand Down

0 comments on commit 4aa381a

Please sign in to comment.