mirror of https://github.com/arendst/Tasmota.git
fix compilation
This commit is contained in:
parent
48968b4bc0
commit
97ad6c5c10
|
@ -2154,6 +2154,7 @@ void LightSetOutputs(const uint16_t *cur_col_10) {
|
||||||
// now apply the actual PWM values, adjusted and remapped 10-bits range
|
// now apply the actual PWM values, adjusted and remapped 10-bits range
|
||||||
if (TasmotaGlobal.light_type < LT_PWM6) { // only for direct PWM lights, not for Tuya, Armtronix...
|
if (TasmotaGlobal.light_type < LT_PWM6) { // only for direct PWM lights, not for Tuya, Armtronix...
|
||||||
|
|
||||||
|
int32_t channel_ct = ChannelCT(); // Channel for PWM CT or -1 if no CT or regular CT
|
||||||
#ifdef USE_PWM_DIMMER
|
#ifdef USE_PWM_DIMMER
|
||||||
uint16_t max_col = 0;
|
uint16_t max_col = 0;
|
||||||
#ifdef USE_I2C
|
#ifdef USE_I2C
|
||||||
|
@ -2166,7 +2167,6 @@ void LightSetOutputs(const uint16_t *cur_col_10) {
|
||||||
} else
|
} else
|
||||||
#endif // USE_I2C
|
#endif // USE_I2C
|
||||||
#endif // USE_PWM_DIMMER
|
#endif // USE_PWM_DIMMER
|
||||||
int32_t channel_ct = ChannelCT(); // Channel for PWM CT or -1 if no CT or regular CT
|
|
||||||
for (uint32_t i = 0; i < (Light.subtype - Light.pwm_offset); i++) {
|
for (uint32_t i = 0; i < (Light.subtype - Light.pwm_offset); i++) {
|
||||||
uint16_t cur_col = cur_col_10[i + Light.pwm_offset];
|
uint16_t cur_col = cur_col_10[i + Light.pwm_offset];
|
||||||
#ifdef USE_PWM_DIMMER
|
#ifdef USE_PWM_DIMMER
|
||||||
|
|
Loading…
Reference in New Issue