laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/37485?usp=email )
Change subject: pySim.commands: Check return value of TERMINAL PROFILE command ......................................................................
pySim.commands: Check return value of TERMINAL PROFILE command
Change-Id: Iaede74caf22970869c2c85b42d1e6f70d52c65cb --- M pySim/commands.py 1 file changed, 10 insertions(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
diff --git a/pySim/commands.py b/pySim/commands.py index c0ac1d7..40b0980 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -759,7 +759,7 @@ payload : payload as hex string """ data_length = len(payload) // 2 - data, sw = self.send_apdu(('80100000%02x' % data_length) + payload) + data, sw = self.send_apdu_checksw(('80100000%02x' % data_length) + payload) return (data, sw)
# ETSI TS 102 221 11.1.22