Skip to content

Conversation

@yageek
Copy link

@yageek yageek commented Jan 9, 2026

Proposed Changes

It seems that for some reason, the previous code could not compute properly the checksum provided by the UART module properly. I did not find the reason but I guess some compiler optimisations or/and some conversion between long and int that introduced some errors.

Types of Changes

This code is a small different approach that does not use strtol method and convert nibbles to integer manually.

The checksum is computed in one shot and compared with the one provided in the UI.

Verification

Tested on my cardputer device

Testing

Linked Issues

Fix of issue #2014

yageek added 2 commits January 9, 2026 11:01
It seems that for some reason, the previous code could not compute properly the checksum provided by the UART module properly. I did not find the reason but I guess some compiler optimisations or/and some conversion between long and int that introduced some errors.

This code is a small different approach that does not use `strtol` method and convert nibbles to integer manually.

The checksum is computed in one shot and compared with the one provided in the UI.

I tested it on my cardputer and seems to work now.
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