diff options
Diffstat (limited to 'bootloader/main-e200r-installer.c')
| -rw-r--r-- | bootloader/main-e200r-installer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bootloader/main-e200r-installer.c b/bootloader/main-e200r-installer.c index a248924..0a7b56b 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(§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"); |