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

#2346 decode ATS if present (ISO 14443-4 card) #2347

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

jdbruner
Copy link
Contributor

@jdbruner jdbruner commented Aug 21, 2024

The PN532 will return the ATS for a ISO 14443-4 card, but the existing logic in PN532.TryDecode106kbpsTypeA does not decode it. As noted in issue #2346, the length check has the wrong sense. Also, as per ISO 14443-4 (section 5.2) the ATS includes the length byte, the value of which includes itself.

Tested with an ISO 14443-4 card - the ATS is decoded.

Microsoft Reviewers: Open in CodeFlow

@dotnet-policy-service dotnet-policy-service bot added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Aug 21, 2024
Copy link
Member

@Ellerbach Ellerbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the fix.

@Ellerbach Ellerbach merged commit 9c5d89f into dotnet:main Aug 21, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants