fix: close stream

This commit is contained in:
Rotzbua 2024-04-23 23:22:27 +02:00 committed by Victor
parent e343133455
commit 9aecdb738b

View file

@ -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)