aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSupreeth Herle <herlesupreeth@gmail.com>2020-03-18 12:02:34 +0100
committerSupreeth Herle <herlesupreeth@gmail.com>2020-03-22 10:17:05 +0100
commit3566b8eb554e1dabd443b291c022a440cc43fdf2 (patch)
treeea3ce1e98a85db343f7a67f823daf13c8f272416
parent4c306ab200891837e2a7b729d88495ec78f20540 (diff)
pySim-read.py: Use the method declared in cards.py to read ICCID
-rwxr-xr-xpySim-read.py4
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,))