ts_51_011: fix encoder of EF_SPN:

The encoder for EF_SPN is passing the 'spn' parameter (which is a list)
directly to enc_spn without taking it apart first.

Change-Id: I0a405793c8909d4279e634b93dcb76e5cb2963f3
Related: OS#4963
This commit is contained in:
Philipp Maier 2021-04-29 17:20:18 +02:00 committed by laforge
parent 90f7497d6d
commit c957ce8adc
1 changed files with 2 additions and 1 deletions

View File

@ -522,7 +522,8 @@ class EF_SPN(TransparentEF):
def _decode_hex(self, raw_hex):
return {'spn': dec_spn(raw_hex)}
def _encode_hex(self, abstract):
return enc_spn(abstract['spn'])
spn = abstract['spn']
return enc_spn(spn[0], spn[1], spn[2])
# TS 51.011 Section 10.3.13
class EF_CBMI(TransRecEF):