Satisfy requirements for features that require USE_LIGHT

This commit is contained in:
Adrian Scillato 2021-08-28 17:23:25 -03:00 committed by GitHub
parent 09a7d0b4a5
commit ee27476890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -506,7 +506,6 @@
//#undef USE_WEBSERVER // Disable Webserver
#undef USE_ENHANCED_GUI_WIFI_SCAN // Disable wifi scan output with BSSID (+0k5 code)
//#undef USE_WEBSEND_RESPONSE // Disable command WebSend response message (+1k code)
#define USE_EMULATION // Enable Hue emulation
#define USE_EMULATION_HUE // Enable Hue Bridge emulation for Alexa (+14k code, +2k mem common)
#undef USE_EMULATION_WEMO // Disable Belkin WeMo emulation for Alexa (+6k code, +2k mem common)
#undef USE_CUSTOM // Disable Custom features
@ -981,8 +980,12 @@
#ifdef USE_EMULATION_WEMO
#define USE_EMULATION
#endif
#ifdef USE_EMULATION
#define USE_LIGHT
#endif
#ifdef USE_COUNTER
#ifdef USE_AC_ZERO_CROSS_DIMMER
#define USE_COUNTER
#define USE_LIGHT
#endif
@ -990,6 +993,14 @@
#define USE_LIGHT
#endif
#ifdef USE_TUYA_MCU
#define USE_LIGHT
#endif
#ifdef USE_ARILUX_RF
#define USE_LIGHT
#endif
// Convert legacy slave to client
#ifdef USE_TASMOTA_SLAVE
#define USE_TASMOTA_CLIENT