diff options
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 8c1b02b183..198ff46a56 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -39,7 +39,7 @@ * by not overlapping ata_write_sector() with USB transfers. This does reduce * write performance, so we only do it for the affected DAPs */ -#ifdef HAVE_ATA_SD +#if (CONFIG_STORAGE & STORAGE_SD) #define SERIALIZE_WRITES #endif /* Enable the following define to export only the SD card slot. This @@ -668,7 +668,7 @@ static void handle_scsi(struct command_block_wrapper* cbw) block_size = SECTOR_SIZE; block_count = RAMDISK_SIZE; #else -#if defined(HAVE_ATA_SD) || defined(HAVE_HOTSWAP) +#if (CONFIG_STORAGE & STORAGE_SD) || defined(HAVE_HOTSWAP) tCardInfo* cinfo = card_get_info(lun); if(cinfo->initialized && cinfo->numblocks > 0) { block_size = cinfo->blocksize; |