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

Fixes gremlin where changing step and direction inversion masks made a mess #68

Merged
merged 1 commit into from
Aug 10, 2018

Conversation

bgort
Copy link

@bgort bgort commented Aug 10, 2018

This PR fixes a gremlin where changing the stepper step and direction inversion masks didn't work correctly because step_port_invert_mask[] and dir_port_invert_mask[] (new with the RAMPS modifications) weren't reset to 0 when they should have been (when unset).

This made initial setup more difficult due to likely desynchronization between settings.step_invert_mask and step_port_invert_mask[] and between settings.dir_invert_mask and dir_port_invert_mask[] with a change to $2 or $3, where grbl would ultimately behave as though there was always an inversion.

(Also, while I might have used a ternary to fix this, the way I did it seemed most consistent with grbl style. Please advise if you'd rather a ternary - easy fix.)

…ctly

because step_port_invert_mask[] (new with the RAMPS modifications)
wasn't reset to 0 when it should have been.  this made a mess.
@chamnit
Copy link

chamnit commented Aug 10, 2018

Thanks.

@chamnit chamnit closed this Aug 10, 2018
@chamnit chamnit reopened this Aug 10, 2018
@chamnit chamnit merged commit a311e2d into gnea:edge Aug 10, 2018
@bgort
Copy link
Author

bgort commented Aug 10, 2018

No problem.

@bgort bgort deleted the gremlinfix branch August 10, 2018 17:05
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