Skip to content

Commit 87952f2

Browse files
authored
Update XClk.cpp
fix: E (4068) ledc: ledc set_duty_with_hpoint(383): hpoint argument is invalid
1 parent 312feea commit 87952f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ESP32_I2S_Camera/XClk.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ bool ClockEnable(int pin, int Hz)
2727
ch_conf.duty = 1;
2828
ch_conf.speed_mode = LEDC_HIGH_SPEED_MODE;
2929
ch_conf.gpio_num = pin;
30+
31+
ch_conf.hpoint = 0;//added by me
32+
3033
err = ledc_channel_config(&ch_conf);
3134
if (err != ESP_OK) {
3235
return false;

0 commit comments

Comments
 (0)