We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e51ff7 + d117548 commit 4ff7f34Copy full SHA for 4ff7f34
target/xclk.c
@@ -36,6 +36,11 @@ esp_err_t xclk_timer_conf(int ledc_timer, int xclk_freq_hz)
36
37
esp_err_t camera_enable_out_clock(camera_config_t* config)
38
{
39
+ if (config->ledc_channel == NO_CAMERA_LEDC_CHANNEL) {
40
+ g_ledc_channel = NO_CAMERA_LEDC_CHANNEL;
41
+ return ESP_OK;
42
+ }
43
+
44
esp_err_t err = xclk_timer_conf(config->ledc_timer, config->xclk_freq_hz);
45
if (err != ESP_OK) {
46
ESP_LOGE(TAG, "ledc_timer_config failed, rc=%x", err);
0 commit comments