Skip to content
New issue

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

Fix initialization of _stepper_cnt #204

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

turley
Copy link
Contributor

@turley turley commented Oct 14, 2023

This was causing stepper initialization to randomly fail (on ESP32-S3) because sometimes _stepper_cnt was initialized to a non-zero value, and the check for _stepper_cnt >= MAX_STEPPER (in stepperConnectToPin) evaluated to true – even on the first stepper added.

@gin66 gin66 merged commit 8e1482a into gin66:master Oct 14, 2023
12 of 13 checks passed
gin66 added a commit that referenced this pull request Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants