Merge pull request #1618 from nemanjan00/iso15693_read_multi

Add first and last block for ISO15693_READ_MULTI_BLOCK to command list
This commit is contained in:
Iceman 2022-03-22 17:59:33 +01:00 committed by GitHub
commit 42498fd755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -553,7 +553,11 @@ void annotateIso15693(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
snprintf(exp, size, "LOCKBLOCK");
return;
case ISO15693_READ_MULTI_BLOCK:
snprintf(exp, size, "READ_MULTI_BLOCK");
if (cmdsize == 6) {
snprintf(exp, size, "READ_MULTI_BLOCK(%d-%d)", cmd[2], (cmd[2] + cmd[3]));
} else {
snprintf(exp, size, "READ_MULTI_BLOCK(%d-%d)", cmd[10], (cmd[10] + cmd[11]));
}
return;
case ISO15693_WRITE_MULTI_BLOCK:
snprintf(exp, size, "WRITE_MULTI_BLOCK");