This commit is contained in:
Domen Puncer 2012-06-18 10:40:43 +02:00
parent 0d8fc2912f
commit e502858e6a

View File

@ -402,7 +402,7 @@ if __name__ == "__main__":
# cmd.cmdWriteProtect([0, 1])
if (conf['write'] or conf['verify']):
data = map(lambda c: ord(c), file(args[0]).read())
data = map(lambda c: ord(c), file(args[0], 'rb').read())
if conf['erase']:
cmd.cmdEraseMemory()