Skip to content
This repository has been archived by the owner on Jan 29, 2018. It is now read-only.

Remove unnedded G1 commands #228

Closed
wants to merge 2 commits into from
Closed

Conversation

james-lan
Copy link

As there are some serial issues, this optimization removes any G1 commands that are not necessary from the laserraster.js output, via keeping track of the last command.

It probably won't help a huge amount, but that's 2 bytes on almost every line of the raster output, which should help some.

G1 is assumed in all controllers I'm aware of, if it's the last command. This should help some with the serial issues.
Optimization: Remove unneccessary G1 commands
@ghost
Copy link

ghost commented Jan 31, 2017 via email

@cprezzi
Copy link
Member

cprezzi commented Jan 31, 2017

This breaks smoothieware buffer streaming! For smoothie, we concatenate multiple G0/G1 commands in one line of up to 64 bytes without \n between the commands (because smoothie can separate commands by the Gx).

@ghost ghost closed this Jan 31, 2017
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants