From 9f8087b448890417d5aa86551957a2100616bb8e Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 8 Jul 2022 23:04:01 +1000 Subject: [PATCH] esp8266/boards: Enable reverse-special-methods on GENERIC board. It increases the firmware size by 292 bytes. Addresses issue #5897. Signed-off-by: Damien George --- ports/esp8266/boards/GENERIC_1M/mpconfigboard.h | 1 + ports/esp8266/boards/GENERIC_512K/mpconfigboard.h | 1 + ports/esp8266/mpconfigport.h | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/esp8266/boards/GENERIC_1M/mpconfigboard.h b/ports/esp8266/boards/GENERIC_1M/mpconfigboard.h index 10e8adcda7..cf5127686c 100644 --- a/ports/esp8266/boards/GENERIC_1M/mpconfigboard.h +++ b/ports/esp8266/boards/GENERIC_1M/mpconfigboard.h @@ -12,5 +12,6 @@ #define MICROPY_VFS (1) #define MICROPY_PY_FSTRINGS (0) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) #define MICROPY_PY_UASYNCIO (0) #define MICROPY_PY_UCRYPTOLIB (1) diff --git a/ports/esp8266/boards/GENERIC_512K/mpconfigboard.h b/ports/esp8266/boards/GENERIC_512K/mpconfigboard.h index ef37e22fb6..b0adb7081c 100644 --- a/ports/esp8266/boards/GENERIC_512K/mpconfigboard.h +++ b/ports/esp8266/boards/GENERIC_512K/mpconfigboard.h @@ -6,6 +6,7 @@ #define MICROPY_PY_FSTRINGS (0) #define MICROPY_PY_BUILTINS_SLICE_ATTRS (0) #define MICROPY_PY_ALL_SPECIAL_METHODS (0) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) #define MICROPY_PY_SYS_STDIO_BUFFER (0) #define MICROPY_PY_UASYNCIO (0) #define MICROPY_PY_URE_SUB (0) diff --git a/ports/esp8266/mpconfigport.h b/ports/esp8266/mpconfigport.h index c78ae3ce0b..7727f7845a 100644 --- a/ports/esp8266/mpconfigport.h +++ b/ports/esp8266/mpconfigport.h @@ -26,7 +26,6 @@ #define MICROPY_PY_BUILTINS_STR_PARTITION (0) #define MICROPY_PY_BUILTINS_STR_SPLITLINES (0) #define MICROPY_PY_BUILTINS_SLICE_INDICES (0) -#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) #define MICROPY_PY_BUILTINS_COMPILE (0) #define MICROPY_PY_BUILTINS_EXECFILE (0) #define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (0)