Skip to content

Fix RFID 125 khz reading#2019

Merged
pr3y merged 2 commits into
BruceDevices:devfrom
yageek:main
Jan 20, 2026
Merged

Fix RFID 125 khz reading#2019
pr3y merged 2 commits into
BruceDevices:devfrom
yageek:main

Conversation

@yageek
Copy link
Copy Markdown
Contributor

@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.
@bmorcelli bmorcelli changed the base branch from main to dev January 19, 2026 23:46
@pr3y pr3y merged commit a83de89 into BruceDevices:dev Jan 20, 2026
5 of 6 checks passed
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