summaryrefslogtreecommitdiffstats
path: root/bootloader/main-e200r-installer.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-04-03 22:18:16 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-04-03 22:18:16 +0000
commit2dbafc10863fda3d18745e3948d76b09a017dd65 (patch)
treeb066313f8357aa938a76759d417d6e8af6135fc4 /bootloader/main-e200r-installer.c
parente07909a9c13d19c2d986206caa566eebb4c0a4f7 (diff)
downloadrockbox-2dbafc10863fda3d18745e3948d76b09a017dd65.tar.gz
rockbox-2dbafc10863fda3d18745e3948d76b09a017dd65.tar.bz2
rockbox-2dbafc10863fda3d18745e3948d76b09a017dd65.zip
Fix some forgotten storage_(read|write)_sectors() calls
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25461 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/main-e200r-installer.c')
-rw-r--r--bootloader/main-e200r-installer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bootloader/main-e200r-installer.c b/bootloader/main-e200r-installer.c
index a24892458d..0a7b56b1b6 100644
--- a/bootloader/main-e200r-installer.c
+++ b/bootloader/main-e200r-installer.c
@@ -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(&sector[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");