continued hk parsing

This commit is contained in:
2022-05-19 13:20:22 +02:00
parent 480e0f07e0
commit 260a083091
17 changed files with 765 additions and 675 deletions

View File

@ -33,7 +33,6 @@ def ccsds_tm_handler(apid: int, raw_tm_packet: bytes, _user_args: any) -> None:
pus_factory_hook(raw_tm_packet=raw_tm_packet)
def pus_factory_hook(raw_tm_packet: bytes):
if len(raw_tm_packet) < 8:
LOGGER.warning("Detected packet shorter than 8 bytes!")
@ -81,6 +80,5 @@ def pus_factory_hook(raw_tm_packet: bytes):
packet=raw_tm_packet, srv_subservice=(service_type, subservice_type)
)
except ValueError:
# TODO: Log faulty packet
LOGGER.warning("Invalid packet format detected")
log_raw_unknown_packet(packet=raw_tm_packet, packet_type=PacketTypes.TM)