diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-18 12:02:34 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-22 10:17:05 +0100 |
commit | 3566b8eb554e1dabd443b291c022a440cc43fdf2 (patch) | |
tree | ea3ce1e98a85db343f7a67f823daf13c8f272416 /pySim-read.py | |
parent | 4c306ab200891837e2a7b729d88495ec78f20540 (diff) |
pySim-read.py: Use the method declared in cards.py to read ICCID
Change-Id: I0dcda1ea617f3febe246b360b95887c04e5d2629
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 bad2047..cdab462 100755 --- a/pySim-read.py +++ b/pySim-read.py @@ -99,9 +99,9 @@ if __name__ == '__main__': card = card_detect("auto", scc) or Card(scc) # EF.ICCID - (res, sw) = scc.read_binary(EF['ICCID']) + (res, sw) = card.read_iccid() if sw == '9000': - print("ICCID: %s" % (dec_iccid(res),)) + print("ICCID: %s" % (res,)) else: print("ICCID: Can't read, response code = %s" % (sw,)) |