aboutsummaryrefslogtreecommitdiffstats
path: root/cards/generic_card.py
diff options
context:
space:
mode:
Diffstat (limited to 'cards/generic_card.py')
-rw-r--r--cards/generic_card.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cards/generic_card.py b/cards/generic_card.py
index 48f0a7f..94d8cc7 100644
--- a/cards/generic_card.py
+++ b/cards/generic_card.py
@@ -9,7 +9,7 @@ DEBUG = True
_GENERIC_NAME = "Generic"
class Card:
DRIVER_NAME = [_GENERIC_NAME]
- APDU_GET_RESPONSE = None
+ COMMAND_GET_RESPONSE = None
## Constants for check_sw()
PURPOSE_SUCCESS = 1 # Command executed successful
@@ -153,7 +153,7 @@ class Card:
if self.check_sw(result.sw, self.PURPOSE_GET_RESPONSE):
## Need to call GetResponse
- gr_apdu = C_APDU(self.APDU_GET_RESPONSE, le = result.sw2, cla=apdu.cla) # FIXME
+ gr_apdu = C_APDU(self.COMMAND_GET_RESPONSE, le = result.sw2, cla=apdu.cla) # FIXME
result = R_APDU(self._real_send(gr_apdu))
elif self.check_sw(result.sw, self.PURPOSE_RETRY) and apdu.Le == 0:
## Retry with correct Le