Skip to content

Fix get system info#35

Merged
bofh69 merged 4 commits intomainfrom
fix-get-system-info
Jan 22, 2026
Merged

Fix get system info#35
bofh69 merged 4 commits intomainfrom
fix-get-system-info

Conversation

@bofh69
Copy link
Owner

@bofh69 bofh69 commented Jan 22, 2026

No description provided.

bofh69 and others added 4 commits January 20, 2026 20:11
Also fix formatting for black-26.1.0
* Initial plan

* Add comprehensive tests for decode_cc and get_ndef methods

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>

* Refactor tests to use pytest fixtures

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
@bofh69 bofh69 requested a review from Copilot January 22, 2026 10:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the get_system_information method for ISO15693 cards and adds NDEF (NFC Data Exchange Format) support for both ISO14443A and ISO15693 card types.

Changes:

  • Corrected byte offset parsing in ISO15693Card.get_system_information() to properly read system information flags and fields
  • Added decode_cc and get_ndef methods to both ISO14443ACard and ISO15693Card classes for NDEF message parsing
  • Updated example scripts to demonstrate NDEF reading functionality

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/test_iso15693.py Comprehensive test suite for ISO15693 NDEF functionality including CC decoding and TLV parsing
tests/test_iso14443a_ndef.py Comprehensive test suite for ISO14443A NDEF functionality including CC decoding and TLV parsing
src/pn5180_tagomatic/session.py Removed redundant parentheses from tuple unpacking operations
src/pn5180_tagomatic/iso15693.py Fixed system information parsing bugs and added NDEF support methods
src/pn5180_tagomatic/iso14443a.py Added NDEF support with decode_cc and get_ndef methods
src/pn5180_tagomatic/cards.py Added abstract get_ndef method to Card base class
examples/iso_15693-read-memory.py Added NDEF extraction and display to memory reading example
examples/iso_14443-read-memory.py Added NDEF extraction and display to memory reading example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bofh69 bofh69 merged commit 34ded6e into main Jan 22, 2026
42 checks passed
@bofh69 bofh69 deleted the fix-get-system-info branch January 22, 2026 10:27
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.

3 participants