tweak for HK filter feature

This commit is contained in:
Robin Müller 2024-02-29 12:09:53 +01:00
parent 68ea889d0f
commit 00876ed0e0
Signed by: muellerr
GPG Key ID: A649FB78196E3849
1 changed files with 2 additions and 3 deletions

View File

@ -53,7 +53,7 @@ FORWARD_SENSOR_TEMPS = False
@dataclasses.dataclass
class HkFilter:
object_ids: List[ObjectIdU32]
object_ids: List[bytes]
set_ids: List[int]
@ -72,8 +72,7 @@ def handle_hk_packet(
named_obj_id = tm_packet.object_id
if tm_packet.subservice == 25 or tm_packet.subservice == 26:
hk_data = tm_packet.tm_data[8:]
if named_obj_id in hk_filter.object_ids:
if named_obj_id.as_bytes in hk_filter.object_ids:
# print(f"PUS TM Base64: {base64.b64encode(raw_tm)}")
handle_regular_hk_print(
printer=printer,