Compilation with Conditional Rules

96 views
Skip to first unread message

Whabby

unread,
Apr 5, 2020, 11:40:22 AM4/5/20
to TasmotaUsers

Hi everybody

I tried to compile Tasmota 8.2 including the possibility of conditional rules. As compiler i use Arduino IDE 1.8.9

My steps:
- copy user_config_override_sample.h to user_config_override.h
- in user_config_override.h I was adding:
#define USE_EXPRESSION // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem)
#define SUPPORT_IF_STATEMENT // Add support for IF statement in rules (+4k2 code, -332 bytes mem)

and uncommenting
#warning **** user_config_override.h: Using Settings from this File ****

so it looks like this
#ifndef _USER_CONFIG_OVERRIDE_H_
#define _USER_CONFIG_OVERRIDE_H_
#define USE_EXPRESSION         // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem)  
#define SUPPORT_IF_STATEMENT   // Add support for IF statement in rules (+4k2 code, -332 bytes mem)  
#warning **** user_config_override.h: Using Settings from this File ****    // force the compiler to show a warning to confirm that this file is included


- In my_user_config.h I uncommented
#define USE_CONFIG_OVERRIDE                      // Uncomment to use user_config_override.h file. See README.md

During compilation, there was no warning **** user_config_override.h: Using Settings from this File **** and also the conditional rules are not working.

Somewhere is a mistake, no idea where. Hope someone can give me hand, thanks a lot!

Whabbby


Reply all
Reply to author
Forward
0 new messages