You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a compile warning in grbl-LPC about the checksum calculation routine in flash.cpp. There's a logical OR in the code which should be a bitwise OR. Existing code shouldn't generate spurious errors, but I don't think it will really catch any errors either. It basically returns the last character in the memory block potentially with 1 added.
That piece of code has a bug and hasnt worked since 2010-2011 when it was first installed by the original author of Grbl. I discovered it a couple years ago but decided to leave it alone. If I fix it, everyone would get their EEPROM wiped automatically since their checksums would all be wrong. This problem is being fixed in the next major version with a better Fletcher checksum.
@tbfleming It’s up to you if you want to fix it. Like I said before, it’ll wipe everyone’s settings unless you write and test some countermeasures.
There's a compile warning in grbl-LPC about the checksum calculation routine in flash.cpp. There's a logical OR in the code which should be a bitwise OR. Existing code shouldn't generate spurious errors, but I don't think it will really catch any errors either. It basically returns the last character in the memory block potentially with 1 added.
I've included a patch below.
Thanks, Gil
The text was updated successfully, but these errors were encountered: