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.

CZDanol
CZDanol previously approved these changes Oct 11, 2024
@bkerler bkerler dismissed CZDanol’s stale review January 31, 2025 11:40

The merge-base changed after approval.

@bkerler bkerler force-pushed the max_serial_cmd_length branch from da4e62b to ddc31d0 Compare February 1, 2025 22:21
@bkerler bkerler requested a review from CZDanol February 1, 2025 22:22
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