Skip to content

Commit

Permalink
always define
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 19, 2021
1 parent aabf28d commit 1e71a93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/sd/cardreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ uint32_t CardReader::filesize, CardReader::sdpos;

CardReader::CardReader() {
changeMedia(&
#if ENABLED(MULTI_VOLUME) && SHARED_VOLUME_IS(SD_ONBOARD)
#if SHARED_VOLUME_IS(SD_ONBOARD)
sd2card_sd_spi
#elif (ENABLED(MULTI_VOLUME) && SHARED_VOLUME_IS(USB_FLASH_DRIVE)) || ENABLED(USB_FLASH_DRIVE_SUPPORT)
#elif SHARED_VOLUME_IS(USB_FLASH_DRIVE) || ENABLED(USB_FLASH_DRIVE_SUPPORT)
sd2card_UsbFlashDrive
#else
TERN(SDIO_SUPPORT, sd2card_sdio, sd2card_sd_spi)
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/sd/cardreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ extern const char M23_STR[], M24_STR[];
#if !SHARED_VOLUME_IS(SD_ONBOARD) && !SHARED_VOLUME_IS(USB_FLASH_DRIVE)
#error "DEFAULT_SHARED_VOLUME must be either SD_ONBOARD or USB_FLASH_DRIVE."
#endif
#else
#define SHARED_VOLUME_IS(...) 0
#endif

typedef struct {
Expand Down

0 comments on commit 1e71a93

Please sign in to comment.