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

Swapped INT to Long to prevent rolling around error's #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bobthecooldad
Copy link

During debugging if a value of equal over 100000 would be passed using tmc26XStepper.step(X), it would cause the value to go to a negative int. Debugged back to this bit of code, so pushing as a bug fix to help future projects.

Updating Both the CPP and H file, to long otherwise values over 100000 on INT will roll over and cause a negative and override any existing code that controls direction by pulling the dir high or by multiplying the steps by -1
To match the CPP
Removed Debug Notes
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.

1 participant