From 9e89f1935301c8eb28e20e55acc2bf05f15f414c Mon Sep 17 00:00:00 2001 From: chenzitai Date: Sun, 5 Aug 2018 03:22:26 +0100 Subject: [PATCH] Fix bug: number of returnd FileIDs (cherry picked from commit e1761af) --- Software/Chameleon/MFDESFire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/Chameleon/MFDESFire.py b/Software/Chameleon/MFDESFire.py index 8237970..41186c5 100644 --- a/Software/Chameleon/MFDESFire.py +++ b/Software/Chameleon/MFDESFire.py @@ -194,7 +194,7 @@ def decodeData(data): # Application Level Commands ########################### def decodeRespGetFileIDs(data): - if len(data) == 4: + if len(data) > 0: return "FIDs:0x"+hexlify(data[1:]).decode() else: return strFail