From f78130319a11a7e85f9ad4bd56270f747cf9a5cf Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 7 Jan 2022 17:08:17 +0100 Subject: [PATCH] Fix compilation --- tasmota/tasmota_template.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_template.h b/tasmota/tasmota_template.h index 8f9f2b863..749cc8bb2 100644 --- a/tasmota/tasmota_template.h +++ b/tasmota/tasmota_template.h @@ -226,6 +226,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu }; } GpioOptionABits; +#ifdef ESP32 enum SupportedEmulationModules { SONOFF_BASIC, SONOFF_RF, SONOFF_SV, SONOFF_TH, SONOFF_DUAL, SONOFF_POW, SONOFF_4CH, SONOFF_S2X, SLAMPHER, SONOFF_TOUCH, SONOFF_LED, CH1, CH4, MOTOR, ELECTRODRAGON, EXS_RELAY, WION, WEMOS_DUMMY, SONOFF_DEV, H801, @@ -242,6 +243,7 @@ enum SupportedEmulationModules { const uint8_t kModuleEmulationList[] PROGMEM = { PWM_DIMMER // (v2022.01.1) - Option_E1 - (Light) USE_PWM_DIMMER support }; +#endif // ESP32 // Text in webpage Module Parameters and commands GPIOS and GPIO const char kSensorNames[] PROGMEM =