Skip to content

Commit

Permalink
Fix save size for Intel buffered
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-maniac committed Apr 16, 2023
1 parent 5faa3ec commit cac925f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payload.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ __attribute__((target("arm"))) void flush_sram_ram(unsigned sa, unsigned save_si
// Write data
int c = 0;
SRAM_BANK_SEL = 0;
while (c < AGB_SRAM_SIZE) {
while (c < save_size) {
if (c == AGB_SRAM_SIZE)
SRAM_BANK_SEL = 1;
_FLASH_WRITE(sa+c, 0xEA);
Expand Down

0 comments on commit cac925f

Please sign in to comment.