freemyipod r533 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r532‎ | r533 | r534 >
Date:13:20, 6 February 2011
Author:theseven
Status:new
Tags:
Comment:
emcore.py: Show correct address in i2cread command
Modified paths:
  • /emcore/trunk/tools/emcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/emcore.py
@@ -298,7 +298,7 @@
299299 bytes = struct.unpack("%dB" % len(data), data)
300300 self.logger.info("Data read from I2C:\n")
301301 for index, byte in enumerate(bytes):
302 - self.logger.info("%02X: %02X\n" % (index, byte))
 302+ self.logger.info("%02X: %02X\n" % (addr + index, byte))
303303
304304 @command
305305 def i2cwrite(self, bus, slave, addr, *args):