Update xclk.c

changed to auto mode since that is working too and is a better choice
This commit is contained in:
Miro Moravek
2019-08-30 12:06:00 +02:00
committed by GitHub
parent 47b39ae119
commit f26ce1cf2d

View File

@@ -20,7 +20,7 @@ esp_err_t camera_enable_out_clock(camera_config_t* config)
timer_conf.freq_hz = config->xclk_freq_hz;
timer_conf.speed_mode = LEDC_HIGH_SPEED_MODE;
timer_conf.timer_num = config->ledc_timer;
timer_conf.clk_cfg = LEDC_USE_APB_CLK;
timer_conf.clk_cfg = LEDC_AUTO_CLK;
esp_err_t err = ledc_timer_config(&timer_conf);
if (err != ESP_OK) {
ESP_LOGE(TAG, "ledc_timer_config failed, rc=%x", err);