From f9762dc98fb9588849017a99c0cf90fcbe42ddfd Mon Sep 17 00:00:00 2001 From: Supreeth Herle Date: Wed, 18 Mar 2020 12:05:06 +0100 Subject: [PATCH] pySim-read.py: Use the method declared in cards.py to read IMSI Change-Id: I2709b040d956a3a2b9210aa78c82a6ccf482f761 --- pySim-read.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pySim-read.py b/pySim-read.py index cdab4622..ed6cb29e 100755 --- a/pySim-read.py +++ b/pySim-read.py @@ -106,9 +106,9 @@ if __name__ == '__main__': print("ICCID: Can't read, response code = %s" % (sw,)) # EF.IMSI - (res, sw) = scc.read_binary(['3f00', '7f20', '6f07']) + (res, sw) = card.read_imsi() if sw == '9000': - print("IMSI: %s" % (dec_imsi(res),)) + print("IMSI: %s" % (res,)) else: print("IMSI: Can't read, response code = %s" % (sw,))