diff options
-rw-r--r-- | pySim/cdma_ruim.py | 6 | ||||
-rwxr-xr-x | tests/test_files.py | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pySim/cdma_ruim.py b/pySim/cdma_ruim.py index 3fab558..8b66490 100644 --- a/pySim/cdma_ruim.py +++ b/pySim/cdma_ruim.py @@ -91,7 +91,7 @@ class EF_SPN(TransparentEF): _test_de_encode = [ ( "010801536b796c696e6b204e57ffffffffffffffffffffffffffffffffffffffffffff", - { 'rfu0' : 0, 'show_in_hsa' : True, 'rfu2' : 0, + { 'rfu1' : 0, 'show_in_hsa' : True, 'rfu2' : 0, 'char_encoding' : 8, 'lang_ind' : 1, 'spn' : 'Skylink NW' } ), ] @@ -133,9 +133,9 @@ class EF_AD(TransparentEF): # Byte 1: Display Condition 'ms_operation_mode'/Enum(Byte, self.OP_MODE), # Bytes 2-3: Additional information - 'additional_info'/Bytes(2), + 'additional_info'/HexAdapter(Bytes(2)), # Bytes 4..: RFU - 'rfu'/GreedyBytesRFU, + 'rfu'/HexAdapter(GreedyBytesRFU), ) diff --git a/tests/test_files.py b/tests/test_files.py index 3fb1062..fe520fb 100755 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -29,6 +29,7 @@ import pySim.ts_31_103 import pySim.ts_51_011 import pySim.sysmocom_sja2 import pySim.gsm_r +import pySim.cdma_ruim def get_qualified_name(c): """return the qualified (by module) name of a class.""" |