Skip to content
Snippets Groups Projects
Commit 686367dc authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266: Explicitly collect garbage in bootstrap scripts.

Leads to less fragmentation at teh time user code starts.
parent 417dc0c0
No related branches found
No related tags found
No related merge requests found
import gc
import uos
from flashbdev import bdev
......@@ -7,3 +8,5 @@ try:
except OSError:
import inisetup
vfs = inisetup.setup()
gc.collect()
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment