mirror of https://gerrit.osmocom.org/pysim
pySim-read.py: Use the method declared in cards.py to read ICCID
Change-Id: I0dcda1ea617f3febe246b360b95887c04e5d2629
This commit is contained in:
parent
4c306ab200
commit
3566b8eb55
|
@ -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,))
|
||||
|
||||
|
|
Loading…
Reference in New Issue