From 5389392b4e94c3a52accd2a1f29e5e18f7e5984d Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 27 Feb 2019 15:24:25 -0800 Subject: [PATCH] reduce GC heap size when BLE is used (#1884) --- libs/core/pxtcore.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/core/pxtcore.h b/libs/core/pxtcore.h index 66925808..51d0dab7 100644 --- a/libs/core/pxtcore.h +++ b/libs/core/pxtcore.h @@ -14,7 +14,11 @@ void debuglog(const char *format, ...); #define xmalloc malloc #define xfree free +#if CONFIG_ENABLED(MICROBIT_BLE_ENABLED) +#define GC_BLOCK_SIZE 256 +#else #define GC_BLOCK_SIZE 1000 +#endif #define DMESG NOLOG