diff --git a/Marlin/src/sd/cardreader.cpp b/Marlin/src/sd/cardreader.cpp index 94da23806253..822f6a857cf6 100644 --- a/Marlin/src/sd/cardreader.cpp +++ b/Marlin/src/sd/cardreader.cpp @@ -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) diff --git a/Marlin/src/sd/cardreader.h b/Marlin/src/sd/cardreader.h index 8eb346fac37c..d0f215cfc162 100644 --- a/Marlin/src/sd/cardreader.h +++ b/Marlin/src/sd/cardreader.h @@ -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 {