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

serial: Indicate gcode cmd length longer than allowed. #4168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bkerler
Copy link
Contributor

@bkerler bkerler commented Aug 29, 2024

Refers to issue #4123.

If a gcode command being sent via serial is longer than the MAX_CMD_SIZE and the gcode command does contain a checksum, the checksum given in the command may no longer be part of the command buffer and thus leads to a checksum error although the checksum is valid.

This code adds an error if the command length exceeds the cmd buffer size and thus ensures that the checksum no longer is validated.

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.

2 participants