pySim-read.py: Use the method declared in cards.py to read IMSI

Change-Id: I2709b040d956a3a2b9210aa78c82a6ccf482f761
This commit is contained in:
Supreeth Herle 2020-03-18 12:05:06 +01:00
parent 3566b8eb55
commit f9762dc98f
1 changed files with 2 additions and 2 deletions

View File

@ -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,))