Skip to content

Commit b8f25df

Browse files
committed
Set ledc_channel.sleep_mode to LEDC_SLEEP_MODE_KEEP_ALIVE
1 parent 1520b63 commit b8f25df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/drivers/hardware_specific/esp32/esp32_ledc_mcu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ bool _ledcAttachChannelAdvanced(uint8_t pin, int _channel, int _group, uint32_t
104104
uint32_t duty = ledc_get_duty(group, channel);
105105
ledc_channel_config_t ledc_channel;
106106
ledc_channel.speed_mode = group;
107+
ledc_channel.sleep_mode = LEDC_SLEEP_MODE_KEEP_ALIVE;
107108
ledc_channel.channel = channel;
108109
ledc_channel.timer_sel = LEDC_TIMER_0;
109110
ledc_channel.intr_type = LEDC_INTR_DISABLE;

0 commit comments

Comments
 (0)