vdeschwb / esp32-signal-generator

Open-Source Signal Generator using the ESP32 uC
MIT License
121 stars 31 forks source link

Uninitialised config variable #16

Open sailingfree opened 1 year ago

sailingfree commented 1 year ago

In the function PWM_Module::Setup the timer_config.clk_cfg should be initialised to LEDC_AUTO_CLK;

If you dont do that then often you get an assert exception when setting the configutation.

timer_config.clk_cfg = LEDC_AUTO_CLK;

Found using Platformio and the Arduino environment on a heltec ESP32.