Skip to content

Commit

Permalink
ak2_cmd24: fix sector not incrementing in WriteSectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Dec 18, 2024
1 parent df073c9 commit ebbd7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocksds/source/platform/ak2_cmd24/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bool AK2Q_ReadSectors(uint32_t sector, uint32_t num_sectors, void* buffer) {
// success.
bool AK2Q_WriteSectors(uint32_t sector, uint32_t num_sectors, const void* buffer) {
for (int i = 0; i < num_sectors; i++) {
ioRPG_SDWriteSingleSector(sector, buffer);
ioRPG_SDWriteSingleSector((sector + i), buffer);
buffer = (u8*)buffer + 0x200;
}
return true;
Expand Down

0 comments on commit ebbd7b4

Please sign in to comment.