esp8266: Explicitly collect garbage in bootstrap scripts.

Leads to less fragmentation at teh time user code starts.
This commit is contained in:
Paul Sokolovsky
2016-07-02 19:20:13 +03:00
parent 417dc0c05d
commit 686367dcfc
2 changed files with 5 additions and 0 deletions

View File

@@ -40,7 +40,9 @@ def setup():
with open("/boot.py", "w") as f:
f.write("""\
# This file is executed on every boot (including wake-boot from deepsleep)
import gc
#import webrepl
#webrepl.start()
gc.collect()
""")
return vfs