Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/ports/esp8266/boards/GENERIC_512K/_boot.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4 lines
63 B
Python
Raw Normal View History

esp8266/boards/GENERIC_512K: Add custom minimal _boot.py. Commit 0abf6f830cd390e2e5dbd4a2c68f611f5c9507dc removed _boot.py from the manifest for the GENERIC_512K board because the build does not include a filesystem. But the main code expects _boot.py to be there and prints an error if it's not. So add a custom _boot.py, which just sets the gc.threshold(). Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 14:13:18 +10:00
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 151ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API