File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -425,8 +425,6 @@ def read(filename):
425
425
conf ['address' ] = eval (a )
426
426
elif o == '-l' :
427
427
conf ['len' ] = eval (a )
428
- # elif o == '-f':
429
- # conf['fname'] = a
430
428
else :
431
429
assert False , "unhandled option"
432
430
@@ -471,12 +469,6 @@ def read(filename):
471
469
if len (id ) < 2 or id [0 ] != 0x04 :
472
470
raise Exception ('Unrecognised chip ID' )
473
471
474
- # cmd.cmdGetVersion()
475
- # cmd.cmdGetID()
476
- # cmd.cmdReadoutUnprotect()
477
- # cmd.cmdWriteUnprotect()
478
- # cmd.cmdWriteProtect([0, 1])
479
-
480
472
if conf ['erase' ]:
481
473
cmd .cmdEraseMemory ()
482
474
@@ -496,10 +488,8 @@ def read(filename):
496
488
497
489
if not conf ['write' ] and conf ['read' ]:
498
490
rdata = cmd .readMemory (conf ['address' ], conf ['len' ])
499
- # file(conf['fname'], 'wb').write(rdata)
500
491
file (args [0 ], 'wb' ).write ('' .join (map (chr ,rdata )))
501
492
502
- # cmd.cmdGo(addr + 0x04)
503
493
finally :
504
494
cmd .releaseChip ()
505
495
You can’t perform that action at this time.
0 commit comments