Skip to content

Commit 591a161

Browse files
authored
fix(ledc): reverting not necessary change
1 parent 443f7e1 commit 591a161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-ledc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static bool ledcFadeConfig(uint8_t pin, uint32_t start_duty, uint32_t target_dut
411411
// Wait for LEDCs next PWM cycle to update duty (~ 1-2 ms)
412412
while (ledc_get_duty(group, channel) != start_duty);
413413

414-
if (ledc_set_fade_time_and_start(group, channel, target_duty, _fade_time_ms, LEDC_FADE_NO_WAIT) != ESP_OK) {
414+
if (ledc_set_fade_time_and_start(group, channel, target_duty, max_fade_time_ms, LEDC_FADE_NO_WAIT) != ESP_OK) {
415415
log_e("ledc_set_fade_time_and_start failed");
416416
return false;
417417
}

0 commit comments

Comments
 (0)