Skip to content

fix(readers): clear PN532 detection cache on close#529

Merged
wizzomafizzo merged 1 commit intomainfrom
fix/pn532-clear-detection-cache-on-close
Feb 8, 2026
Merged

fix(readers): clear PN532 detection cache on close#529
wizzomafizzo merged 1 commit intomainfrom
fix/pn532-clear-detection-cache-on-close

Conversation

@wizzomafizzo
Copy link
Member

Summary

  • Clear go-pn532's detection cache when a PN532 reader is closed, preventing stale cached results from causing stuck reconnection cycles
  • Bump go-pn532 to v0.20.3 which adds ClearDetectionCache() and fixes UART disconnect/reconnection detection failures

Ref #505

Clear go-pn532's detection cache when a reader is closed to prevent
stale cached results from causing stuck reconnection cycles. Without
this, a disconnected device's cached detection entry can trigger
repeated connection attempts to a dead path, which then gets marked
as failed and is never retried even after the device reappears.

Bumps go-pn532 to v0.20.3 which adds ClearDetectionCache() and fixes
UART disconnect/reconnection detection failures.

Ref #505
@sentry
Copy link

sentry bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit 3c17b19 into main Feb 8, 2026
11 checks passed
@wizzomafizzo wizzomafizzo deleted the fix/pn532-clear-detection-cache-on-close branch February 8, 2026 00:04
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