freemyipod r589 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r588‎ | r589 | r590 >
Date:19:44, 12 February 2011
Author:farthen
Status:new
Tags:
Comment:
emCORE tools: libemcore.py: Fix encoding of appheader
Modified paths:
  • /emcore/trunk/tools/libemcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/libemcore.py
@@ -461,7 +461,7 @@
462462 @command()
463463 def run(self, app):
464464 """ Uploads and runs the emCORE app in the string 'app' """
465 - if app[:8].decode("ascii") != "emCOexec":
 465+ if app[:8].decode("latin_1") != "emCOexec":
466466 raise ArgumentError("The specified app is not an emCORE application")
467467 baseaddr = self.malloc(len(app))
468468 self.write(baseaddr, app)