freemyipod r426 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r425‎ | r426 | r427 >
Date:01:51, 16 January 2011
Author:farthen
Status:new
Tags:
Comment:
libembios.py: check for thread struct version
Modified paths:
  • /embios/trunk/tools/libembios.py (modified) (history)

Diff [purge]

Index: embios/trunk/tools/libembios.py
@@ -356,6 +356,8 @@
357357 tablesize = resp.tablesize
358358 size = tablesize
359359 structver = resp.structver
 360+ if resp.structver != 1:
 361+ raise DeviceError("The thread struct version is unknown! Help!")
360362 offset = 0
361363 data = ""
362364 while size > 0: