From e21b520a17f09567fed8b8c54576800882a734fe Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 20 Jan 2021 14:23:16 +0100 Subject: [PATCH] Fix compilation --- tasmota/tasmota_configurations_ESP32.h | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/tasmota/tasmota_configurations_ESP32.h b/tasmota/tasmota_configurations_ESP32.h index cd6518a1c..28c6f85af 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -99,19 +99,21 @@ //#define USE_SCRIPT // Add support for script (+17k code) // Script related defines -#define UFSYS_SIZE 8192 -#define USE_SCRIPT_TASK -#define LARGE_ARRAYS -#define SCRIPT_LARGE_VNBUFF -#define USE_SCRIPT_GLOBVARS -#define USE_SCRIPT_SUB_COMMAND -#define MAXFILT 10 -#define USE_ANGLE_FUNC -#define MAXVARS 75 -#define MAXSVARS 15 -#define SCRIPT_FULL_WEBPAGE -#define SCRIPT_GET_HTTPS_JP -#define USE_GOOGLE_CHARTS +#ifdef USE_SCRIPT + #define UFSYS_SIZE 8192 + #define USE_SCRIPT_TASK + #define LARGE_ARRAYS + #define SCRIPT_LARGE_VNBUFF + #define USE_SCRIPT_GLOBVARS + #define USE_SCRIPT_SUB_COMMAND + #define MAXFILT 10 + #define USE_ANGLE_FUNC + #define MAXVARS 75 + #define MAXSVARS 15 + #define SCRIPT_FULL_WEBPAGE + #define SCRIPT_GET_HTTPS_JP + #define USE_GOOGLE_CHARTS +#endif // USE_SCRIPT #endif // FIRMWARE_M5STACK_CORE2 #endif // ESP32