mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-22 21:38:35 +03:00
Use read_binary function of card class to read GID2 and reduce code duplication
Change-Id: I5d80fcc1446a6691b8e2a09bcec558148fa31ab2
This commit is contained in:
@@ -124,7 +124,7 @@ if __name__ == '__main__':
|
||||
|
||||
# EF.GID2
|
||||
try:
|
||||
(res, sw) = card.read_gid2()
|
||||
(res, sw) = card.read_binary('GID2')
|
||||
if sw == '9000':
|
||||
print("GID2: %s" % (res,))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user