Skip to content

Commit

Permalink
- Fix compatibility with SDSC Cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Aug 15, 2020
1 parent d2b03c2 commit 8c71c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cube/patches/sdgecko/sd.c
Expand Up @@ -224,7 +224,7 @@ void do_read_disc(void *address, uint32_t length, uint32_t offset, uint32_t sect
if (mmc.queue[i].callback == callback)
return;

sector = offset / SECTOR_SIZE + sector;
sector = offset / SECTOR_SIZE + sector << *VAR_SD_SHIFT;
offset = offset % SECTOR_SIZE;
length = MIN(length, SECTOR_SIZE - offset);

Expand Down

0 comments on commit 8c71c11

Please sign in to comment.