We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 (classic)
latest master (checkout manually)
PlatformIO
Windows 11
40MHz
yes
115200
ledcAttach uses ledc_handle.used_channels to pick an unused channel. However this is never initialized to 0.
ledcAttach
ledc_handle.used_channels
This can lead to nearly impossible to reproduce issues where per build (or run?) the number of usable ledC channels can differ.
Suggested change:
bool ledcAttach(uint8_t pin, uint32_t freq, uint8_t resolution) { if (!fade_initialized) { ledc_handle.used_channels = 0; } ...
Slightly related issue: #9212
-
No response
The text was updated successfully, but these errors were encountered:
@P-R-O-C-H-Y - PTAL.
Sorry, something went wrong.
P-R-O-C-H-Y
Successfully merging a pull request may close this issue.
Board
ESP32 (classic)
Device Description
Hardware Configuration
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Windows 11
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
115200
Description
ledcAttach
usesledc_handle.used_channels
to pick an unused channel.However this is never initialized to 0.
This can lead to nearly impossible to reproduce issues where per build (or run?) the number of usable ledC channels can differ.
Suggested change:
Slightly related issue: #9212
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: