Skip to content

Whitespace in Gcode word causes parameter to be boolean #11

@zsherman-iviva

Description

@zsherman-iviva

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions