aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristina Quast <chrysh.ng+git@gmail.com>2015-05-14 16:55:35 +0200
committerChristina Quast <chrysh.ng+git@gmail.com>2015-05-14 16:55:38 +0200
commit20e89af1bfff5a1bc9db5b7c9c112feb1bbe25bc (patch)
treee66ca76df004a33de3f6b37251b3e787179ffe8d
parent2a9c063d6bd669463c5934ac5efbdf3635398d05 (diff)
apdu_split.py: Changed buf data type list to array
The data type of incoming and outgoing data should be the same at all points of the program to make it consistent. For this program the data type is array.array.
-rwxr-xr-xusb_application/apdu_split.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/usb_application/apdu_split.py b/usb_application/apdu_split.py
index c210470..f813b8d 100755
--- a/usb_application/apdu_split.py
+++ b/usb_application/apdu_split.py
@@ -35,9 +35,9 @@ class Apdu_splitter:
def __init__(self):
self.state = apdu_states.APDU_S_CLA
- self.buf = []
- self.pts_buf = []
- self.data = []
+ self.buf = array('B', [])
+ self.pts_buf = array('B', [])
+ self.data = array('B', [])
self.ins = array('B', [])
self.data_remainig = 0