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 @@ | |||
39 | * by not overlapping ata_write_sector() with USB transfers. This does reduce | 39 | * by not overlapping ata_write_sector() with USB transfers. This does reduce |
40 | * write performance, so we only do it for the affected DAPs | 40 | * write performance, so we only do it for the affected DAPs |
41 | */ | 41 | */ |
42 | #ifdef HAVE_ATA_SD | 42 | #if (CONFIG_STORAGE & STORAGE_SD) |
43 | #define SERIALIZE_WRITES | 43 | #define SERIALIZE_WRITES |
44 | #endif | 44 | #endif |
45 | /* Enable the following define to export only the SD card slot. This | 45 | /* 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) | |||
668 | block_size = SECTOR_SIZE; | 668 | block_size = SECTOR_SIZE; |
669 | block_count = RAMDISK_SIZE; | 669 | block_count = RAMDISK_SIZE; |
670 | #else | 670 | #else |
671 | #if defined(HAVE_ATA_SD) || defined(HAVE_HOTSWAP) | 671 | #if (CONFIG_STORAGE & STORAGE_SD) || defined(HAVE_HOTSWAP) |
672 | tCardInfo* cinfo = card_get_info(lun); | 672 | tCardInfo* cinfo = card_get_info(lun); |
673 | if(cinfo->initialized && cinfo->numblocks > 0) { | 673 | if(cinfo->initialized && cinfo->numblocks > 0) { |
674 | block_size = cinfo->blocksize; | 674 | block_size = cinfo->blocksize; |