Move '#include user_config_override.h' in 'my_user_config.h'.

Allow user_config_override.h to change parameters like USE_MQTT_TLS.
This commit is contained in:
Stephan Hadinger 2019-08-31 14:44:49 +02:00
parent 9785a7997c
commit fce3de82c5
2 changed files with 4 additions and 3 deletions

View File

@ -549,6 +549,10 @@
* No user configurable items below * No user configurable items below
\*********************************************************************************************/ \*********************************************************************************************/
#ifdef USE_CONFIG_OVERRIDE
#include "user_config_override.h" // Configuration overrides for my_user_config.h
#endif
#if defined(USE_DISCOVERY) && defined(USE_MQTT_AWS_IOT) #if defined(USE_DISCOVERY) && defined(USE_MQTT_AWS_IOT)
#error "Select either USE_DISCOVERY or USE_MQTT_AWS_IOT, mDNS takes too much code space and is not needed for AWS IoT" #error "Select either USE_DISCOVERY or USE_MQTT_AWS_IOT, mDNS takes too much code space and is not needed for AWS IoT"
#endif #endif

View File

@ -30,9 +30,6 @@
#include "sonoff_version.h" // Sonoff-Tasmota version information #include "sonoff_version.h" // Sonoff-Tasmota version information
#include "sonoff.h" // Enumeration used in my_user_config.h #include "sonoff.h" // Enumeration used in my_user_config.h
#include "my_user_config.h" // Fixed user configurable options #include "my_user_config.h" // Fixed user configurable options
#ifdef USE_CONFIG_OVERRIDE
#include "user_config_override.h" // Configuration overrides for my_user_config.h
#endif
#ifdef USE_MQTT_TLS #ifdef USE_MQTT_TLS
#include <t_bearssl.h> // we need to include before "sonoff_post.h" to take precedence over the BearSSL version in Arduino #include <t_bearssl.h> // we need to include before "sonoff_post.h" to take precedence over the BearSSL version in Arduino
#endif // USE_MQTT_TLS #endif // USE_MQTT_TLS