tweak for HK filter feature
This commit is contained in:
parent
68ea889d0f
commit
00876ed0e0
@ -53,7 +53,7 @@ FORWARD_SENSOR_TEMPS = False
|
|||||||
|
|
||||||
@dataclasses.dataclass
|
@dataclasses.dataclass
|
||||||
class HkFilter:
|
class HkFilter:
|
||||||
object_ids: List[ObjectIdU32]
|
object_ids: List[bytes]
|
||||||
set_ids: List[int]
|
set_ids: List[int]
|
||||||
|
|
||||||
|
|
||||||
@ -72,8 +72,7 @@ def handle_hk_packet(
|
|||||||
named_obj_id = tm_packet.object_id
|
named_obj_id = tm_packet.object_id
|
||||||
if tm_packet.subservice == 25 or tm_packet.subservice == 26:
|
if tm_packet.subservice == 25 or tm_packet.subservice == 26:
|
||||||
hk_data = tm_packet.tm_data[8:]
|
hk_data = tm_packet.tm_data[8:]
|
||||||
|
if named_obj_id.as_bytes in hk_filter.object_ids:
|
||||||
if named_obj_id in hk_filter.object_ids:
|
|
||||||
# print(f"PUS TM Base64: {base64.b64encode(raw_tm)}")
|
# print(f"PUS TM Base64: {base64.b64encode(raw_tm)}")
|
||||||
handle_regular_hk_print(
|
handle_regular_hk_print(
|
||||||
printer=printer,
|
printer=printer,
|
||||||
|
Loading…
Reference in New Issue
Block a user