Clean memory before writing file
This commit is contained in:
parent
b138b3c733
commit
1b5ce385df
@ -72,6 +72,8 @@ def main(nodeip, luafile, volatile=None):
|
||||
s.close()
|
||||
sys.exit(3)
|
||||
|
||||
sendCmd(s, "for i=0,5 do tmr.stop(i) end")
|
||||
sendCmd(s, "collectgarbage()")
|
||||
if (volatile is None):
|
||||
print "Flashing " + luafile
|
||||
sendCmd(s, "file.remove(\"" + luafile+"\");", True)
|
||||
|
Loading…
Reference in New Issue
Block a user