H300: Fix dbg_save_roms().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7801 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f7c97522a8
commit
fbcb699499
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue