mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
pySim.commands: use _checksw during get_data() method
All other methods use send_apdu_checksw, just get_data() was missing the _checksw part. Change-Id: Ic784bf0c30b22e5e83843aa6694e2706b4b2ac48
This commit is contained in:
@@ -794,8 +794,9 @@ class SimCardCommands:
|
||||
data, sw = self.send_apdu_checksw('8076010008' + token, apply_lchan = False)
|
||||
return (data, sw)
|
||||
|
||||
# GPC_SPE_034 11.3
|
||||
def get_data(self, tag: int, cla: int = 0x00):
|
||||
data, sw = self.send_apdu('%02xca%04x00' % (cla, tag))
|
||||
data, sw = self.send_apdu_checksw('%02xca%04x00' % (cla, tag))
|
||||
return (data, sw)
|
||||
|
||||
# TS 31.102 Section 7.5.2
|
||||
|
||||
Reference in New Issue
Block a user