From b522899190488016588043e06ad11342dd39ce62 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 30 Sep 2020 10:24:53 +0200 Subject: [PATCH] remover crc, sw codes in output --- client/luascripts/hf_14b_calypso.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/luascripts/hf_14b_calypso.lua b/client/luascripts/hf_14b_calypso.lua index fcd58d478..c821848d0 100644 --- a/client/luascripts/hf_14b_calypso.lua +++ b/client/luascripts/hf_14b_calypso.lua @@ -7,7 +7,7 @@ local ansicolors = require('ansicolors') copyright = '' author = 'Iceman' -version = 'v1.0.3' +version = 'v1.0.4' desc = [[ This is a script to communicate with a CALYSPO / 14443b tag using the '14b raw' commands ]] @@ -256,7 +256,7 @@ function main(args) else if result then local status, desc, err = calypso_apdu_status(result.data) - local d = result.data:sub(3, #result.data) + local d = result.data:sub(3, (#result.data - 8)) if status then print('<< '..d..' ('..ansicolors.green..'ok'..ansicolors.reset..')') else