Never use Bytes without any 'Adapter'

Otherwise we have binary/bytes as values inside the dict, rather than a
hexadecimal string.  That's ugly when printing without json formatting.

Change-Id: Ia3e7c4791d11bd4e3719a43d58e11e05ec986d1f
This commit is contained in:
Harald Welte
2022-07-20 07:40:05 +02:00
parent 857f110492
commit 3c98d5e91d
4 changed files with 34 additions and 31 deletions

View File

@@ -185,7 +185,7 @@ class EF_Shunting(TransparentEF):
super().__init__(fid='6ff4', sfid=None,
name='EF.Shunting', desc='Shunting', size={8, 8})
self._construct = Struct('common_gid'/Int8ub,
'shunting_gid'/Bytes(7))
'shunting_gid'/HexAdapter(Bytes(7)))
class EF_GsmrPLMN(LinFixedEF):