summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-09 01:26:33 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-09 01:26:33 +0000
commitfbcb699499c6e872b8f2277211c198d860753409 (patch)
tree8bd9279ee1186d4812140e31540a31bd8b0a4baf
parentf7c97522a874cf8136b8e5e014b1a7abb47bc7fc (diff)
H300: Fix dbg_save_roms().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7801 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/debug_menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 71de023408..cd395cc9f3 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1693,13 +1693,14 @@ bool dbg_save_roms(void)
#if defined(IRIVER_H100_SERIES)
fd = creat("/internal_rom_000000-1FFFFF.bin", O_WRONLY);
+#elif defined(IRIVER_H300_SERIES)
+ fd = creat("/internal_rom_000000-3FFFFF.bin", O_WRONLY);
+#endif
if(fd >= 0)
{
- write(fd, (void *)0, 0x200000);
+ write(fd, (void *)0, FLASH_SIZE);
close(fd);
}
-#endif
-
system_memory_guard(oldmode);
return false;
}