diff --git a/bricks/movehub/Makefile b/bricks/movehub/Makefile index 2974f30c3..6f7df12cf 100644 --- a/bricks/movehub/Makefile +++ b/bricks/movehub/Makefile @@ -11,4 +11,7 @@ PB_LIB_BLUENRG = 1 PB_FROZEN_MODULES = 0 MICROPY_ROM_TEXT_COMPRESSION = 0 # Needed for PYBRICKS_OPT_TERSE_ERR +# Reduce code size at the cost of slower performance. +override CSUPEROPT = -Os + include ../_common/common.mk diff --git a/bricks/technichub/Makefile b/bricks/technichub/Makefile index 2df580be4..b87a8036e 100644 --- a/bricks/technichub/Makefile +++ b/bricks/technichub/Makefile @@ -11,4 +11,7 @@ PB_LIB_BLE5STACK = 1 PB_LIB_LSM6DS3TR_C = 1 PB_FROZEN_MODULES = 1 +# Reduce code size at the cost of slower performance. +override CSUPEROPT = -Os + include ../_common/common.mk