The ChameleonMini is a versatile contactless smartcard emulator compliant to NFC. The ChameleonMini was first developed by KAOS. This is NOT the official repo for KAOS's ChameleonMini. For further information see the Getting Started Page
I had a couple of off-by-one errors checking the length (forgot to take into account the command byte itself). I also took the time to re-arrange an if-else chain into a switch statement which saves a few bytes of program code and is slightly faster.
I had a couple of off-by-one errors checking the length (forgot to take into account the command byte itself). I also took the time to re-arrange an if-else chain into a switch statement which saves a few bytes of program code and is slightly faster.