Skip to content

Commit 10e6178

Browse files
authored
Merge pull request #702 from tore-espressif/patch-1
fix(xclk): Zero init ledc_channel_config_t for forward compatibility
2 parents 261e8eb + d9ee211 commit 10e6178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/xclk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ esp_err_t camera_enable_out_clock(const camera_config_t* config)
4747
}
4848

4949
g_ledc_channel = config->ledc_channel;
50-
ledc_channel_config_t ch_conf;
50+
ledc_channel_config_t ch_conf = {0};
5151
ch_conf.gpio_num = config->pin_xclk;
5252
ch_conf.speed_mode = LEDC_LOW_SPEED_MODE;
5353
ch_conf.channel = config->ledc_channel;

0 commit comments

Comments
 (0)