Skip to content

Commit eb7ae53

Browse files
committed
esp8266/boards/GENERIC_512K: Add custom minimal _boot.py.
Commit 0abf6f8 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 <[email protected]>
1 parent 4eb13c5 commit eb7ae53

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import gc
2+
3+
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)

ports/esp8266/boards/GENERIC_512K/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
freeze("$(BOARD_DIR)", "_boot.py", opt=3)
12
freeze("$(PORT_DIR)/modules", ("apa102.py", "neopixel.py", "ntptime.py", "port_diag.py"))
23
freeze("$(MPY_DIR)/drivers/dht", "dht.py")
34
freeze("$(MPY_DIR)/drivers/onewire")

0 commit comments

Comments
 (0)