From 15dcc7011cf871c32828d1b28d520b210d47cc90 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 31 Oct 2017 15:57:56 -0700 Subject: atmel-samd: Turn on slice assignment in all builds. This costs 376 bytes on a Trinket M0 leaving 33412 bytes free. Fixes #193 --- ports/atmel-samd/mpconfigport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/atmel-samd/mpconfigport.h b/ports/atmel-samd/mpconfigport.h index 94f4172f5..37840e0ad 100644 --- a/ports/atmel-samd/mpconfigport.h +++ b/ports/atmel-samd/mpconfigport.h @@ -43,6 +43,7 @@ #define MICROPY_PY_BUILTINS_SET (1) #define MICROPY_PY_BUILTINS_SLICE (1) #define MICROPY_PY_BUILTINS_SLICE_ATTRS (1) +#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1) #define MICROPY_PY_BUILTINS_PROPERTY (1) #define MICROPY_PY_BUILTINS_MIN_MAX (1) #define MICROPY_PY___FILE__ (1) @@ -186,7 +187,6 @@ extern const struct _mp_obj_module_t usb_hid_module; #define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (1) #define MICROPY_PY_ALL_SPECIAL_METHODS (1) - #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1) #define MICROPY_PY_SYS_MAXSIZE (1) #define MICROPY_CPYTHON_COMPAT (1) // Scan gamepad every 32ms -- cgit v1.2.3