Fixed hexprog.py to work with current firmware 'g' packet.

This commit is contained in:
Gareth McMullin 2012-01-30 21:37:58 +13:00
parent c17ad8f2ce
commit b52c62266a
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class Target:
data = unhexify(reply)
except Excpetion:
raise Exception('Invalid response to memory read packet: %r' % reply)
return struct.unpack("=16L", data)
return struct.unpack("=20L", data)
def write_regs(self, *regs):
"""Write target core registers"""