Skip to content
Snippets Groups Projects
Verified Commit f0a2358d authored by dos's avatar dos
Browse files

py,st3m: Clean up bl00mbox channels at launch

Otherwise they can easily accumulate garbage and cause OOMs
when using mpremote a lot.
parent 15adcfd9
Branches
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ from st3m import settings_menu as settings, logging, processors, wifi
from st3m.ui import led_patterns
import st3m.wifi
import captouch, audio, leds, gc, sys_buttons, sys_display, sys_mode, media
import captouch, audio, leds, gc, sys_buttons, sys_display, sys_mode, media, bl00mbox
import os
import machine
......@@ -219,6 +219,10 @@ def run_main() -> None:
except Exception as e:
log.error(f"Failed to set hostname {e}")
for i in range(1, 32):
bl00mbox.Channel(i).clear()
bl00mbox.Channel(i).free = True
menu_settings = settings.build_menu()
menu_system = ApplicationMenu(
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment