Skip to content

Commit 29a69c2

Browse files
author
Marti Bolivar
committed
stm32loader.py: Remove unused code.
Signed-off-by: Marti Bolivar <[email protected]>
1 parent 4cd72bb commit 29a69c2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

support/stm32loader.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@ def read(filename):
425425
conf['address'] = eval(a)
426426
elif o == '-l':
427427
conf['len'] = eval(a)
428-
# elif o == '-f':
429-
# conf['fname'] = a
430428
else:
431429
assert False, "unhandled option"
432430

@@ -471,12 +469,6 @@ def read(filename):
471469
if len(id) < 2 or id[0] != 0x04:
472470
raise Exception('Unrecognised chip ID')
473471

474-
# cmd.cmdGetVersion()
475-
# cmd.cmdGetID()
476-
# cmd.cmdReadoutUnprotect()
477-
# cmd.cmdWriteUnprotect()
478-
# cmd.cmdWriteProtect([0, 1])
479-
480472
if conf['erase']:
481473
cmd.cmdEraseMemory()
482474

@@ -496,10 +488,8 @@ def read(filename):
496488

497489
if not conf['write'] and conf['read']:
498490
rdata = cmd.readMemory(conf['address'], conf['len'])
499-
# file(conf['fname'], 'wb').write(rdata)
500491
file(args[0], 'wb').write(''.join(map(chr,rdata)))
501492

502-
# cmd.cmdGo(addr + 0x04)
503493
finally:
504494
cmd.releaseChip()
505495

0 commit comments

Comments
 (0)