laforge submitted this change.
ts_51_011: EF_CMI: Decoder the alpha_id string
Change-Id: I45efe29ab98972945b4257229a995815f5632536
---
M pySim/ts_51_011.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index 890b85b..5e430ea 100644
--- a/pySim/ts_51_011.py
+++ b/pySim/ts_51_011.py
@@ -472,7 +472,7 @@
desc='Comparison Method Information', **kwargs):
super().__init__(fid, sfid=sfid, name=name, desc=desc, rec_len=rec_len, **kwargs)
self._construct = Struct(
- 'alpha_id'/Bytes(this._.total_len-1), 'comparison_method_id'/Int8ub)
+ 'alpha_id'/GsmStringAdapter(Rpad(Bytes(this._.total_len-1))), 'comparison_method_id'/Int8ub)
class DF_TELECOM(CardDF):
To view, visit change 27185. To unsubscribe, or for help writing mail filters, visit settings.