Zero out ledc timer config in newChannel

This commit is contained in:
Freya Nix 2025-05-11 19:41:23 -05:00 committed by Jade Mattsson
parent 21438dcfd9
commit 12bf48cdee
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ static int lledc_new_channel( lua_State *L )
luaL_checktable (L, 1);
/* Setup timer */
ledc_timer_config_t ledc_timer;
ledc_timer_config_t ledc_timer = {};
ledc_timer.duty_resolution = opt_checkint_range (L, "bits", LEDC_TIMER_13_BIT, 0, LEDC_TIMER_BIT_MAX-1);