Merge pull request #1239 from VortixDev/VortixDev-patch-restore-annotation

Fix RESTORE annotation
This commit is contained in:
Iceman 2021-04-08 18:15:10 +02:00 committed by GitHub
commit c80a75911a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
## [unreleased][unreleased]
- Fix RESTORE mis-annotation (@VortixDev)
- Changed `smart raw` - now uses NG (@iceman1001)
- Added `hf iclass configcard` - now can download / generate config card dumps with a cardhelper [WIP] (@iceman1001)
- Fix swapped DESELECT and WTX annotations (@VortixDev)

View file

@ -228,7 +228,10 @@ int applyIso14443a(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
snprintf(exp, size, "DEC(%d)", cmd[1]);
break;
case MIFARE_CMD_RESTORE:
snprintf(exp, size, "RESTORE(%d)", cmd[1]);
if (cmdsize == 4)
snprintf(exp, size, "RESTORE(%d)", cmd[1]);
else
return 0;
break;
case MIFARE_CMD_TRANSFER:
snprintf(exp, size, "TRANSFER(%d)", cmd[1]);