From eaf0ecfe6e5350ca993e27733f276205dbb89e9d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 14 Aug 2020 14:57:30 +0200 Subject: [PATCH] trace list 15 annotation --- client/src/cmdhflist.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhflist.c b/client/src/cmdhflist.c index 202e5b41d..5d0578441 100644 --- a/client/src/cmdhflist.c +++ b/client/src/cmdhflist.c @@ -392,9 +392,15 @@ void annotateIso15693(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) { case ISO15693_STAYQUIET: snprintf(exp, size, "STAY_QUIET"); return; - case ISO15693_READBLOCK: - snprintf(exp, size, "READBLOCK"); + case ISO15693_READBLOCK: { + + uint8_t block = 0; + if (cmdsize == 13) + block = cmd[10]; + + snprintf(exp, size, "READBLOCK(%d)", block); return; + } case ISO15693_WRITEBLOCK: snprintf(exp, size, "WRITEBLOCK"); return;