fix: close stream
This commit is contained in:
parent
e343133455
commit
9aecdb738b
1 changed files with 2 additions and 2 deletions
|
|
@ -643,7 +643,7 @@ def main():
|
|||
else:
|
||||
if args.erase == True:
|
||||
if not phy.cmd_erase_work_flash():
|
||||
stream.close
|
||||
stream.close()
|
||||
print ('Error: Erase Flash!')
|
||||
sys.exit(3)
|
||||
phy.SetAutoErase(aerase)
|
||||
|
|
@ -681,7 +681,7 @@ def main():
|
|||
else:
|
||||
if args.erase == True:
|
||||
if not phy.cmd_erase_work_flash():
|
||||
stream.close
|
||||
stream.close()
|
||||
print ('Error: Erase Flash!')
|
||||
sys.exit(3)
|
||||
phy.SetAutoErase(aerase)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue