Skip to content

Commit 7129354

Browse files
committed
fix: do not set codeprotect if no program file given
1 parent 9c76631 commit 7129354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

re_programmer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def Main():
8383
WriteConfigArea( new_conf, True if (args.prog_file != '') else False)
8484
ExecuteBist()
8585
Verify( new_conf, new_program, program_size)
86-
if( args.lock == True):
86+
if( args.lock == True and args.prog_file != ''):
8787
CodeProtect()
8888
VerifyCodeProtect()
8989
finally:

0 commit comments

Comments
 (0)