diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-18 12:05:06 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-22 10:17:05 +0100 |
commit | f9762dc98fb9588849017a99c0cf90fcbe42ddfd (patch) | |
tree | edd47265f5da47f270b6a1505c30f8aacb180ebb /pySim-read.py | |
parent | 3566b8eb554e1dabd443b291c022a440cc43fdf2 (diff) |
pySim-read.py: Use the method declared in cards.py to read IMSI
Change-Id: I2709b040d956a3a2b9210aa78c82a6ccf482f761
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-x | pySim-read.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ 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,)) |