herlesupreeth has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/17521 )


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

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

Change-Id: I0dcda1ea617f3febe246b360b95887c04e5d2629
---
M pySim-read.py
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/21/17521/1

diff --git a/pySim-read.py b/pySim-read.py
index 1ee3c26..5052f32 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -117,9 +117,9 @@
        card = card_detect(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,))


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/17521
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I0dcda1ea617f3febe246b360b95887c04e5d2629
Gerrit-Change-Number: 17521
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <[email protected]>
Gerrit-MessageType: newchange

Reply via email to