From 8bd6a7eabc709bee39bd0e0d88ab0f7dbbaa3f9b Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 24 Jan 2022 23:05:29 +0100 Subject: [PATCH] Try compiler fix --- tasmota/xdrv_04_light.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index 46f78e9279a5..17ffda847d19 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -2099,8 +2099,8 @@ void LightSetOutputs(const uint16_t *cur_col_10) { } else #endif // USE_I2C #endif // USE_PWM_DIMMER -#ifdef ESP32 uint32_t pwm_phase = 0; // dephase each PWM channel with the value of the previous +#ifdef ESP32 uint32_t pwm_modulus = (1 << _pwm_bit_num) - 1; // 1023 #endif // ESP32 for (uint32_t i = 0; i < (Light.subtype - Light.pwm_offset); i++) {