cleanup dev code

This commit is contained in:
Peter D. Gray 2023-12-15 10:51:24 -05:00
parent 5b826cc9e9
commit 858faf2c88
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -16,13 +16,17 @@ assert not glob.dis, "main reimport"
# this makes the GC run when larger objects are free in an attempt to reduce fragmentation.
gc.threshold(4096)
if 1: #XXX
# useful for debug: keep this stub!
# useful for debug: start serial port early
try:
from h import *
import ckcc
ckcc.vcp_enabled(True)
from h import *
if 1:
from h import dfu
except:
# above will fail on release build, because:
# - 'h.py' not included
# - excludes serial port code access completely (see vcp_lockdown.c)
pass
if 0:
raise SystemExit