summaryrefslogtreecommitdiff
path: root/ports/atmel-samd
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-10-31 15:57:56 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-10-31 15:57:56 -0700
commit15dcc7011cf871c32828d1b28d520b210d47cc90 (patch)
tree06978f935e5611bbcfd4dbe60a78f052e425d7ff /ports/atmel-samd
parent8c7571a75d7839702dc2626e91a5da9a564022cd (diff)
atmel-samd: Turn on slice assignment in all builds.
This costs 376 bytes on a Trinket M0 leaving 33412 bytes free. Fixes #193
Diffstat (limited to 'ports/atmel-samd')
-rw-r--r--ports/atmel-samd/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
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