pySim-read.py: Use the method declared in cards.py to read IMSI
Change-Id: I2709b040d956a3a2b9210aa78c82a6ccf482f761
diff --git a/pySim-read.py b/pySim-read.py
index cdab462..ed6cb29 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -106,9 +106,9 @@
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,))