From 540adb0ee6ef4716e6453f942f9228a2c06e1b43 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 13 Feb 2022 11:33:21 +0100 Subject: ts_51_011: EF_CMI: Decoder the alpha_id string Change-Id: I45efe29ab98972945b4257229a995815f5632536 --- pySim/ts_51_011.py | 2 +- 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 @@ 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): -- cgit v1.2.3