simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
2.03k stars 521 forks source link

Fix ESP32 Lowside Current Sense ADC2 init #346

Closed mcells closed 10 months ago

mcells commented 10 months ago

Fixes a bug, where lowside sensing using the ADC2 triggered the correct adc conversion, but then tried reading ADC1, resulting in a WDT error.

nmscode commented 10 months ago

I have verified this fix on the ESP32 Pico Devkit M2 board that uses the ESP32-PICO-MINI-02.

runger1101001 commented 10 months ago

Thanks so much for finding and fixing this! ❤️