driver(ledc): fixed ledc clock selection bug for release/v4.0

This commit is contained in:
kooho
2018-11-01 12:23:11 +08:00
parent 9c51f679a7
commit eff3ac05b3
8 changed files with 107 additions and 35 deletions

View File

@@ -42,7 +42,8 @@ esp_err_t mesh_light_init(void)
.bit_num = LEDC_TIMER_13_BIT,
.freq_hz = 5000,
.speed_mode = LEDC_HIGH_SPEED_MODE,
.timer_num = LEDC_TIMER_0
.timer_num = LEDC_TIMER_0,
.clk_cfg = LEDC_AUTO_CLK,
};
ledc_timer_config(&ledc_timer);