diff options
author | Christina Quast <chrysh.ng+git@gmail.com> | 2015-05-03 12:59:44 +0200 |
---|---|---|
committer | Christina Quast <chrysh.ng+git@gmail.com> | 2015-05-03 12:59:44 +0200 |
commit | 40670422c898ad7a3f949ecead8238d83f27edd8 (patch) | |
tree | 44af4611fc7a6a6ce8de08430eac490d95b5a74a | |
parent | be235275faa2e76320364f49f03b1e07188fcb13 (diff) |
apdu_split.py: Recover from failure in parsing on 0xa0
-rwxr-xr-x | usb_application/apdu_split.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usb_application/apdu_split.py b/usb_application/apdu_split.py index ef2e81d..d2c928c 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) |