From 007c2b155e2506d432d92c540227fb470af12372 Mon Sep 17 00:00:00 2001 From: diplfranzhoepfinger <37779037+diplfranzhoepfinger@users.noreply.github.com> Date: Thu, 2 Nov 2023 11:13:20 +0100 Subject: [PATCH] Update ledc_basic_example_main.c the order of initializers should match the declaration, to be able to also use this code in C++ --- .../peripherals/ledc/ledc_basic/main/ledc_basic_example_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/peripherals/ledc/ledc_basic/main/ledc_basic_example_main.c b/examples/peripherals/ledc/ledc_basic/main/ledc_basic_example_main.c index 840c5bcd87..1561da8d9d 100644 --- a/examples/peripherals/ledc/ledc_basic/main/ledc_basic_example_main.c +++ b/examples/peripherals/ledc/ledc_basic/main/ledc_basic_example_main.c @@ -29,8 +29,8 @@ static void example_ledc_init(void) // Prepare and then apply the LEDC PWM timer configuration ledc_timer_config_t ledc_timer = { .speed_mode = LEDC_MODE, - .timer_num = LEDC_TIMER, .duty_resolution = LEDC_DUTY_RES, + .timer_num = LEDC_TIMER, .freq_hz = LEDC_FREQUENCY, // Set output frequency at 4 kHz .clk_cfg = LEDC_AUTO_CLK };