diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 802a649992..8a18a70826 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -686,7 +686,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start, | |||
686 | bank_start -= bank * BLOCKS_PER_BANK; | 686 | bank_start -= bank * BLOCKS_PER_BANK; |
687 | 687 | ||
688 | /* Do not cross a bank boundary in a single transfer loop */ | 688 | /* Do not cross a bank boundary in a single transfer loop */ |
689 | if((transfer + bank_start) >= BLOCKS_PER_BANK) | 689 | if((transfer + bank_start) > BLOCKS_PER_BANK) |
690 | transfer = BLOCKS_PER_BANK - bank_start; | 690 | transfer = BLOCKS_PER_BANK - bank_start; |
691 | } | 691 | } |
692 | 692 | ||