Skip to content

Improve checksum per https://github.com/gnea/grbl-Mega/issues/158#159

Open
drf5n wants to merge 1 commit into
gnea:edgefrom
drf5n:patch-1
Open

Improve checksum per https://github.com/gnea/grbl-Mega/issues/158#159
drf5n wants to merge 1 commit into
gnea:edgefrom
drf5n:patch-1

Conversation

@drf5n

@drf5n drf5n commented Apr 11, 2022

Copy link
Copy Markdown

Per #158 The logical OR squashes the previous checksum down to 1 bit of information, resulting in the final checksum being either the last character written, or one plus the last character written.

This change switches to the bitwise-or to convert the squashing into a 1-bit roll to the left.

 Per gnea#158  The logical OR squashes the previous checksum down to 1 bit of information, resulting in the final checksum being either the last character written, or one plus the last character written.

This change switches to the bitwise-or to convert the squashing into a 1-bit roll to the left.
@drf5n

drf5n commented Apr 11, 2022

Copy link
Copy Markdown
Author

@fra589

fra589 commented Apr 11, 2022

Copy link
Copy Markdown

Very old subject... Already discussed in 2017 here :
grbl#1249 (comment)
with the choice not to correct it
@++;
Gauthier.

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