mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
Open file in binary mode, so it works on windows. Fix from http://www.micromouseonline.com/2009/05/08/stm32-arm-cortex-bootloader/#comment-197
This commit is contained in:
parent
0d8fc2912f
commit
e502858e6a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user