ts_31_102: Fix decoding of UServiceTable

range(0,7) in python is 0..6, and not 0..7, so we need range(0.8)
to produce the desired range covering all bits of a byte.

This resulted in services 8,16,24,... not being displayed in
the decoded output of EF.UST / EF.IST.

Change-Id: I22bbc481de342685352bf5b13d54931d3f37f9b7
This commit is contained in:
Harald Welte 2022-02-25 15:16:39 +01:00
parent 4ebeebffca
commit dd45d8ee3b
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ class EF_UServiceTable(TransparentEF):
ret = {}
for i in range(0, len(in_bin)):
byte = in_bin[i]
for bitno in range(0, 7):
for bitno in range(0, 8):
service_nr = i * 8 + bitno + 1
ret[service_nr] = {
'activated': True if byte & (1 << bitno) else False