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 to inch/mm detection #3

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

Fixes to inch/mm detection #3

wants to merge 2 commits into from

Conversation

MitchBradley
Copy link

This fixes a bug with inch/mm detection that I introduced with my ijkabsolute patch. The root cause was a variable scoping problem. There used to be two copies of isUnitsMm, one in the parser object and another in an object in an outer scope. After parsing, the parser member variable was copied into the outer object. With the new code structure, it is difficult to access the parser object from the individual gcode handler functions. The solution is to eliminate the parser-specific member variable, now doing all units fiddling directly on the isUnitsMm member of the outer object.

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