Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mmdoogie
Copy link
Contributor

While debugging programs, it's confusing for the g-code list view to show a different number of lines than the g-code widget. This comes from the fact that the load routines remove blank lines and add a dwell at the end of the program.
This PR syncs those up by returning the as-loaded gcode in the gcode:load event.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 84.697% when pulling 59279d2 on mmdoogie:return-full-loaded-gcode into 88cb363 on cncjs:master.

@cheton
Copy link
Collaborator

cheton commented Jun 23, 2022

It looks good to me for returning the actual state to the UI.

Other than the change made in this PR, what do you think of adding a ignoreBlankLines option (defaults to false) that allows people to decide whether to send blank lines to the controller? Related to #536

@cheton cheton force-pushed the return-full-loaded-gcode branch 2 times, most recently from 2707fe8 to 06785fc Compare June 24, 2022 14:58
@cheton cheton merged commit f51fa82 into cncjs:master Jan 18, 2023
cheton added a commit that referenced this pull request Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants