diff options
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525v2.c')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 8df947275d..94ba019183 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -795,10 +795,6 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, | |||
795 | const int drive = 0; | 795 | const int drive = 0; |
796 | #endif | 796 | #endif |
797 | 797 | ||
798 | /* skip SanDisk OF */ | ||
799 | if (drive == INTERNAL_AS3525) | ||
800 | start += AMS_OF_SIZE; | ||
801 | |||
802 | mutex_lock(&sd_mtx); | 798 | mutex_lock(&sd_mtx); |
803 | #ifndef BOOTLOADER | 799 | #ifndef BOOTLOADER |
804 | sd_enable(true); | 800 | sd_enable(true); |
@@ -821,6 +817,10 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, | |||
821 | goto sd_transfer_error; | 817 | goto sd_transfer_error; |
822 | } | 818 | } |
823 | 819 | ||
820 | /* skip SanDisk OF */ | ||
821 | if (drive == INTERNAL_AS3525) | ||
822 | start += AMS_OF_SIZE; | ||
823 | |||
824 | /* CMD7 w/rca: Select card to put it in TRAN state */ | 824 | /* CMD7 w/rca: Select card to put it in TRAN state */ |
825 | if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_NO_RESP, NULL)) | 825 | if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_NO_RESP, NULL)) |
826 | return -19; | 826 | return -19; |