Skip to content

Commit f1a8185

Browse files
committed
bricks/_common: Disable micropython module on Move Hub.
This saves about 1600 bytes.
1 parent a3c76f8 commit f1a8185

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
### Removed
2020
- Removed `hub.system.reset()` method.
21+
- Disabled `micropython` module on Move Hub.
2122

2223
[pybricks-micropython#117]: https://github.com/pybricks/pybricks-micropython/pull/117
2324
[support#409]: https://github.com/pybricks/support/issues/409

bricks/_common/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// Enabled modules
1818
#define MICROPY_PY_IO (PYBRICKS_OPT_EXTRA_MOD)
1919
#define MICROPY_PY_MATH (PYBRICKS_OPT_FLOAT)
20+
#define MICROPY_PY_MICROPYTHON (PYBRICKS_OPT_EXTRA_MOD)
2021
#define MICROPY_PY_STRUCT (PYBRICKS_OPT_EXTRA_MOD)
2122
#define MICROPY_PY_SYS (PYBRICKS_OPT_EXTRA_MOD)
2223
#define MICROPY_PY_UERRNO (1)

micropython

0 commit comments

Comments
 (0)