Skip to content

Fixes to inch/mm detection#3

Open
MitchBradley wants to merge 2 commits intodchote:masterfrom
MitchBradley:master
Open

Fixes to inch/mm detection#3
MitchBradley wants to merge 2 commits intodchote:masterfrom
MitchBradley:master

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