From 131ffbcb6ad3bffd74db1c36d1e7e19f52fffec1 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 9 Sep 2020 17:33:03 +0200 Subject: [PATCH] trace list 15 - now prints block for write /read annotations better --- 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 d898e9ab9..dff2b6345 100644 --- a/client/src/cmdhflist.c +++ b/client/src/cmdhflist.c @@ -442,13 +442,19 @@ void annotateIso15693(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) { uint8_t block = 0; if (cmdsize == 13) block = cmd[10]; + else if (cmdsize == 5) + block = cmd[2]; snprintf(exp, size, "READBLOCK(%d)", block); return; } - case ISO15693_WRITEBLOCK: - snprintf(exp, size, "WRITEBLOCK"); + case ISO15693_WRITEBLOCK: { + uint8_t block = 0; + if (cmdsize == 9) + block = cmd[2]; + snprintf(exp, size, "WRITEBLOCK(%d)", block); return; + } case ISO15693_LOCKBLOCK: snprintf(exp, size, "LOCKBLOCK"); return;