Skip to content

Commit 37348a0

Browse files
committed
bricks/simhub: Enable sys module.
This is needed to run the MicroPython test suite.
1 parent 2f801ac commit 37348a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bricks/_common/common.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ PY_EXTRA_SRC_C = $(addprefix shared/,\
253253
ifeq ($(PB_MCU_FAMILY),native)
254254
PY_EXTRA_SRC_C += $(addprefix shared/,\
255255
runtime/gchelper_generic.c \
256+
runtime/sys_stdio_mphal.c \
256257
)
257258
PY_EXTRA_SRC_C += $(addprefix bricks/simhub/,\
258259
pbio_os_hook.c \

bricks/simhub/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
#define PYBRICKS_OPT_RAW_REPL (0)
5050
#define PYBRICKS_OPT_FLOAT (0)
5151
#define PYBRICKS_OPT_TERSE_ERR (0)
52-
#define PYBRICKS_OPT_EXTRA_LEVEL1 (0)
53-
#define PYBRICKS_OPT_EXTRA_LEVEL2 (0)
52+
#define PYBRICKS_OPT_EXTRA_LEVEL1 (1)
53+
#define PYBRICKS_OPT_EXTRA_LEVEL2 (1)
5454
#define PYBRICKS_OPT_CUSTOM_IMPORT (0)
5555
#define PYBRICKS_OPT_NATIVE_MOD (0)
5656

0 commit comments

Comments
 (0)