Clean memory before writing file

This commit is contained in:
ollo 2019-04-18 21:46:15 +02:00
parent b138b3c733
commit 1b5ce385df

View File

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