Skip to content

Commit

Permalink
configure ledc to auto select clock
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixPe authored and jmattsson committed May 18, 2023
1 parent 4523bbb commit f125b2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/modules/ledc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ static int lledc_new_channel( lua_State *L )

ledc_timer.timer_num = opt_checkint_range(L, "timer", -1, 0, LEDC_TIMER_MAX-1);

ledc_timer.clk_cfg = LEDC_AUTO_CLK;

/* Setup channel */
ledc_channel_config_t channel_config = {
.speed_mode = ledc_timer.speed_mode,
Expand Down

0 comments on commit f125b2d

Please sign in to comment.