From 40670422c898ad7a3f949ecead8238d83f27edd8 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Sun, 3 May 2015 12:59:44 +0200 Subject: [PATCH] apdu_split.py: Recover from failure in parsing on 0xa0 --- usb_application/apdu_split.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usb_application/apdu_split.py b/usb_application/apdu_split.py index ef2e81d4..d2c928c5 100755 --- a/usb_application/apdu_split.py +++ b/usb_application/apdu_split.py @@ -108,7 +108,9 @@ class Apdu_splitter: INS_data_expected = [0xC0, 0xB0] def split(self, c): - print("state: ", self.state, c) + if c == 0xA0: + self.state = apdu_states.APDU_S_CLA +# print("state: ", self.state, c) self.Apdu_S[self.state](self, c)