RfidResearchGroup / ChameleonMini

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
http://chameleontiny.com/help/
Other
407 stars 76 forks source link

fix bug with iclass UPDATE command #94

Closed nvx closed 2 years ago

nvx commented 2 years ago

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.