mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
Move parsing of HPLMNAcT to generic Card class
Change-Id: I46c863c118dcbef89455c34289ed25e5a342f35b
This commit is contained in:
@@ -183,9 +183,9 @@ if __name__ == '__main__':
|
||||
|
||||
# EF.HPLMNAcT
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['HPLMNAcT'])
|
||||
(res, sw) = card.read_hplmn_act()
|
||||
if sw == '9000':
|
||||
print("HPLMNAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
print("HPLMNAcT:\n%s" % (res))
|
||||
else:
|
||||
print("HPLMNAcT: Can't read, response code = %s" % (sw,))
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user