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 5611989 + 896cb70 commit 0dfa482Copy full SHA for 0dfa482
target/xclk.c
@@ -35,6 +35,11 @@ esp_err_t xclk_timer_conf(int ledc_timer, int xclk_freq_hz)
35
36
esp_err_t camera_enable_out_clock(camera_config_t* config)
37
{
38
+ if (config->ledc_channel == NO_CAMERA_LEDC_CHANNEL) {
39
+ g_ledc_channel = NO_CAMERA_LEDC_CHANNEL;
40
+ return ESP_OK;
41
+ }
42
+
43
esp_err_t err = xclk_timer_conf(config->ledc_timer, config->xclk_freq_hz);
44
if (err != ESP_OK) {
45
ESP_LOGE(TAG, "ledc_timer_config failed, rc=%x", err);
0 commit comments