aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-02-13 11:33:21 +0100
committerHarald Welte <laforge@osmocom.org>2022-02-15 15:35:36 +0100
commit540adb0ee6ef4716e6453f942f9228a2c06e1b43 (patch)
tree0359ed64dd9b1e7d6f3aae2e1ad6d87987664501
parent1e73d228f4b11b6202ad452f96d590bfb294a83e (diff)
ts_51_011: EF_CMI: Decoder the alpha_id string
-rw-r--r--pySim/ts_51_011.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class EF_CMI(LinFixedEF):
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):