Skip to content

Conversation

declanshanaghy
Copy link

@declanshanaghy declanshanaghy commented May 19, 2020

@death-droid Figured this would be a handy addition back in the main line. Lots of changes in formatting since PyCharm did that automatically with code formatting.

The actual changes are pretty minimal. Just added optional parameters to the read and write methods to specify the user blocks and trailer block on each call. They can then be used to write more than a total of 48 bytes to the chip.

e.g: https://github.com/declanshanaghy/gwent/blob/645d1fa7410e7f28a247d49db28ebb75f2a679e1/software/gwent/gwent/hal/mfrc522_entrypoints.py

Declan Shanaghy and others added 7 commits May 19, 2020 00:48
1. Added detailed structured logging throughout MFRC522.py:
   - Added debug logging for all major operations with hex values
   - Improved error logging with detailed context
   - Added start/complete logging for all card operations

2. Improved SimpleMFRC522.py:
   - Changed default log_verbose to True
   - Added hex value formatting for status codes
   - Added more detailed debug logging
   - Enhanced error reporting

These changes improve debugging capabilities for RFID operations by providing
more context and structured logging information, making it easier to diagnose
issues with card reading and writing.
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