freemyipod r93 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r92‎ | r93 | r94 >
Date:11:53, 11 August 2010
Author:benedikt93
Status:new
Tags:
Comment:
fix libembios.py typos (thx user890104)
Modified paths:
  • /embios/trunk/tools/libembios.py (modified) (history)

Diff [purge]

Index: embios/trunk/tools/libembios.py
@@ -161,7 +161,7 @@
162162
163163 self.__myprint("emBIOS %s v%d.%d.%d (SVN revision: %d) on %s, USB version %s\n" \
164164 % (self.type2name(self.type), self.major, self.minor, self.patch, self.svnrev, \
165 - self.devtype2name(self.devtype), dev.deviceVersion)\
 165+ self.devtype2name(self.devtype), self.dev.deviceVersion)\
166166 , silent)
167167
168168 elif (infotype == "packetsize"):
@@ -188,7 +188,7 @@
189189 i = struct.unpack("<IIII", response)
190190
191191 self.usermem_lower = i[1]
192 - self.usermem_higher = i[2]
 192+ self.usermem_upper = i[2]
193193
194194 self.__myprint("User memory range:\n Lower bound (inclusive): %x\n Upper bound (exclusive) %x\n" \
195195 % (self.usermem_lower, self.usermem_upper)
@@ -352,7 +352,7 @@
353353 response = self.__getbulk(self.handle, self.__cinep, 0x10)
354354 self.__checkstatus(response)
355355
356 - data += self.__getBulk(self.handle, self.__doutep, blocklen)
 356+ data += self.__getbulk(self.handle, self.__doutep, blocklen)
357357
358358 offset += blocklen
359359 size -= blocklen