mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-28 00:08:36 +03:00
utils: specify type of parameter name in enc_spn
Related: OS#4963 Change-Id: I43a1e68afe9e756346bc0cfe8bda4ac665ac6c54
This commit is contained in:
@@ -174,7 +174,7 @@ def dec_spn(ef):
|
|||||||
name = h2s(ef[2:])
|
name = h2s(ef[2:])
|
||||||
return (name, hplmn_disp, oplmn_disp)
|
return (name, hplmn_disp, oplmn_disp)
|
||||||
|
|
||||||
def enc_spn(name, hplmn_disp=False, oplmn_disp=False):
|
def enc_spn(name:str, hplmn_disp=False, oplmn_disp=False):
|
||||||
byte1 = 0x00
|
byte1 = 0x00
|
||||||
if hplmn_disp: byte1 = byte1|0x01
|
if hplmn_disp: byte1 = byte1|0x01
|
||||||
if oplmn_disp: byte1 = byte1|0x02
|
if oplmn_disp: byte1 = byte1|0x02
|
||||||
|
|||||||
Reference in New Issue
Block a user