summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/iriver_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c
index 2ef6872c7d..2004840531 100644
--- a/apps/plugins/iriver_flash.c
+++ b/apps/plugins/iriver_flash.c
@@ -514,7 +514,7 @@ int flash_bootloader(const char *filename)
cfi_program_word(FB + i, p16[i]);
/* Erase the bootloader flash section. */
- for (i = BOOTLOADER_ENTRYPOINT/SEC_SIZE; i < 0x200; i++)
+ for (i = BOOTLOADER_ERASEGUARD; i < BOOTLOADER_ERASEGUARD+16; i++)
/*rc =*/ cfi_erase_sector(FB + (SEC_SIZE/2) * i);
pos = BOOTLOADER_ENTRYPOINT/2;