mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix some forgotten storage_(read|write)_sectors() calls
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25461 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e07909a9c1
commit
2dbafc1086
4 changed files with 19 additions and 20 deletions
|
@ -139,8 +139,7 @@ void* main(void)
|
|||
printf("reading: %x", (START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK)*512);
|
||||
#endif
|
||||
|
||||
storage_read_sectors(0,
|
||||
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
||||
storage_read_sectors(pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
||||
1 , sector);
|
||||
crc32 = chksum_crc32 (sector, 512);
|
||||
|
||||
|
@ -161,7 +160,7 @@ void* main(void)
|
|||
/* E200R bootloader detected - patch it */
|
||||
memcpy(§or[HACK_OFFSET], changedBytes,
|
||||
sizeof(changedBytes)/sizeof(*changedBytes));
|
||||
storage_write_sectors(0,
|
||||
storage_write_sectors(
|
||||
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
||||
1 , sector);
|
||||
printf("Firmware unlocked");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue