Move parsing of PLMNwAcT to generic Card class

Change-Id: I14d7c2dc51fac6d5cf4a708a77ad23d252ba6094
This commit is contained in:
Supreeth Herle
2020-03-19 12:42:10 +01:00
parent 9efd8ef812
commit 140844052a
2 changed files with 9 additions and 2 deletions

View File

@@ -163,9 +163,9 @@ if __name__ == '__main__':
# EF.PLMNwAcT
try:
(res, sw) = scc.read_binary(EF['PLMNwAcT'])
(res, sw) = card.read_plmn_act()
if sw == '9000':
print("PLMNwAcT:\n%s" % (format_xplmn_w_act(res)))
print("PLMNwAcT:\n%s" % (res))
else:
print("PLMNwAcT: Can't read, response code = %s" % (sw,))
except Exception as e: