freemyipod r399 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r398‎ | r399 | r400 >
Date:01:44, 30 December 2010
Author:farthen
Status:new
Tags:
Comment:
libembios: Fix small bug that was silly but did not cause any harm.
Modified paths:
  • /embios/trunk/tools/libembios.py (modified) (history)

Diff [purge]

Index: embios/trunk/tools/libembios.py
@@ -609,7 +609,7 @@
610610 @command(timeout = 50000)
611611 def storage_read_sectors_md(self, volume, sector, count, addr):
612612 """ Read sectors from as storage device """
613 - result = self.lib.monitorcommand(struct.pack("IIQIIII", 28, volume, sector, count, addr, 0, 0), "III", ("rc", None, None, None))
 613+ result = self.lib.monitorcommand(struct.pack("IIQIIII", 28, volume, sector, count, addr, 0, 0), "III", ("rc", None, None))
614614 if result.rc > 0x80000000:
615615 raise DeviceError("storage_read_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, rc))
616616
@@ -616,7 +616,7 @@
617617 @command(timeout = 50000)
618618 def storage_write_sectors_md(self, volume, sector, count, addr):
619619 """ Read sectors from as storage device """
620 - result = self.lib.monitorcommand(struct.pack("IIQIIII", 29, volume, sector, count, addr, 0, 0), "III", ("rc", None, None, None))
 620+ result = self.lib.monitorcommand(struct.pack("IIQIIII", 29, volume, sector, count, addr, 0, 0), "III", ("rc", None, None))
621621 if result.rc > 0x80000000:
622622 raise DeviceError("storage_read_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, rc))
623623