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

Change-Id: I0dcda1ea617f3febe246b360b95887c04e5d2629
This commit is contained in:
Supreeth Herle 2020-03-18 12:02:34 +01:00
parent 4c306ab200
commit 3566b8eb55
1 changed files with 2 additions and 2 deletions

View File

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