Skip to content

Commit ebbd7b4

Browse files
ak2_cmd24: fix sector not incrementing in WriteSectors
1 parent df073c9 commit ebbd7b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blocksds/source/platform/ak2_cmd24/iointerface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool AK2Q_ReadSectors(uint32_t sector, uint32_t num_sectors, void* buffer) {
3535
// success.
3636
bool AK2Q_WriteSectors(uint32_t sector, uint32_t num_sectors, const void* buffer) {
3737
for (int i = 0; i < num_sectors; i++) {
38-
ioRPG_SDWriteSingleSector(sector, buffer);
38+
ioRPG_SDWriteSingleSector((sector + i), buffer);
3939
buffer = (u8*)buffer + 0x200;
4040
}
4141
return true;

0 commit comments

Comments
 (0)