From 686367dcfc6cb0a930fbfee03399b706eb76eae7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 2 Jul 2016 19:20:13 +0300 Subject: esp8266: Explicitly collect garbage in bootstrap scripts. Leads to less fragmentation at teh time user code starts. --- esp8266/modules/_boot.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'esp8266/modules') diff --git a/esp8266/modules/_boot.py b/esp8266/modules/_boot.py index c950de6758..2cacb56760 100644 --- a/esp8266/modules/_boot.py +++ b/esp8266/modules/_boot.py @@ -1,3 +1,4 @@ +import gc import uos from flashbdev import bdev @@ -7,3 +8,5 @@ try: except OSError: import inisetup vfs = inisetup.setup() + +gc.collect() -- cgit v1.2.3