diff --git a/tools/tcpFlash.py b/tools/tcpFlash.py index 6059719..2c32002 100755 --- a/tools/tcpFlash.py +++ b/tools/tcpFlash.py @@ -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)