From 12bf48cdeea79cea4185ddc74e0ec69d3b2228c3 Mon Sep 17 00:00:00 2001 From: Freya Nix Date: Sun, 11 May 2025 19:41:23 -0500 Subject: [PATCH] Zero out ledc timer config in newChannel --- components/modules/ledc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/modules/ledc.c b/components/modules/ledc.c index e695df9c..245827c5 100644 --- a/components/modules/ledc.c +++ b/components/modules/ledc.c @@ -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);