mirror of https://github.com/arendst/Tasmota.git
bugfix in comment
This commit is contained in:
parent
e3f0445a5d
commit
fce966800f
|
@ -2192,10 +2192,10 @@ void LightSetOutputs(const uint16_t *cur_col_10) {
|
|||
if (!Settings->flag4.zerocross_dimmer) {
|
||||
#ifdef ESP32
|
||||
TasmotaGlobal.pwm_value[i] = ac_zero_cross_power(cur_col); // mark the new expected value
|
||||
// AddLog(LOG_LEVEL_DEBUG_MORE, "analogWrite-%i 0x%03X", i, cur_col2);
|
||||
// AddLog(LOG_LEVEL_DEBUG_MORE, "analogWrite-%i 0x%03X", i, cur_col);
|
||||
#else // ESP32
|
||||
analogWrite(Pin(GPIO_PWM1, i), bitRead(TasmotaGlobal.pwm_inverted, i) ? Settings->pwm_range - ac_zero_cross_power(cur_col) : ac_zero_cross_power(cur_col));
|
||||
// AddLog(LOG_LEVEL_DEBUG_MORE, "analogWrite-%i 0x%03X", bitRead(TasmotaGlobal.pwm_inverted, i) ? Settings->pwm_range - cur_col2 : cur_col2);
|
||||
// AddLog(LOG_LEVEL_DEBUG_MORE, "analogWrite-%i 0x%03X", bitRead(TasmotaGlobal.pwm_inverted, i) ? Settings->pwm_range - cur_col : cur_col);
|
||||
#endif // ESP32
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue