From 3566b8eb554e1dabd443b291c022a440cc43fdf2 Mon Sep 17 00:00:00 2001 From: Supreeth Herle Date: Wed, 18 Mar 2020 12:02:34 +0100 Subject: [PATCH] pySim-read.py: Use the method declared in cards.py to read ICCID Change-Id: I0dcda1ea617f3febe246b360b95887c04e5d2629 --- pySim-read.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pySim-read.py b/pySim-read.py index bad20477..cdab4622 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,))