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

Whitespace in Gcode word causes parameter to be boolean #11

Open
zsherman-iviva opened this issue Dec 11, 2024 · 0 comments
Open

Whitespace in Gcode word causes parameter to be boolean #11

zsherman-iviva opened this issue Dec 11, 2024 · 0 comments

Comments

@zsherman-iviva
Copy link

Take the following line:
G1 X 0.791 Y 0 F200

When running GcodeParser, this line appears as:
GcodeLine(command=('G', 1), params={'X': True, 'Y': True, 'F': 200}, comment='')
(boolean "True" instead of the value in the Gcode line)

Expected:
GcodeLine(command=('G', 1), params={'X': 0.791, 'Y': 0, 'F': 200}, comment='')

According to Tormach, "Spaces and tabs are allowed anywhere on a line of code and do not change the meaning of the line, except inside comments." From Duet3D, "Comments and white space will be ignored by RepRapFirmware when executing the GCode."

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

No branches or pull requests

1 participant