Skip to content

Fix newline on odd-length lines (MeatPack) - #67

Open
schrodlm wants to merge 2 commits into
prusa3d:mainfrom
schrodlm:fix_newline
Open

schrodlm wants to merge 2 commits into
prusa3d:mainfrom
schrodlm:fix_newline

Conversation

@schrodlm

Copy link
Copy Markdown

No description provided.

unified_method() appended '\n' unconditionally, but callers already
pass lines with the terminator included, so G-lines were encoded
with a trailing "\n\n". The decoder's newline handling masked the
duplicate when the packed line length was even, but odd-length
lines produced a blank line in the decoded output.
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