diff --git a/bricks/_common/mpconfigport.h b/bricks/_common/mpconfigport.h index 4deebdc7f..e4b828ce3 100644 --- a/bricks/_common/mpconfigport.h +++ b/bricks/_common/mpconfigport.h @@ -50,7 +50,7 @@ #define MICROPY_DEBUG_PRINTERS (0) #define MICROPY_ENABLE_GC (1) #define MICROPY_ENABLE_FINALISER (1) -#define MICROPY_GC_ALLOC_THRESHOLD (0) +#define MICROPY_GC_ALLOC_THRESHOLD (PYBRICKS_OPT_EXTRA_LEVEL2) #define MICROPY_STACK_CHECK (1) #define MICROPY_HELPER_REPL (1) #define MICROPY_HELPER_LEXER_UNIX (0)