if elif fix

This commit is contained in:
Robin Müller 2022-05-20 00:19:50 +02:00
parent d308899920
commit 756b300c31
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -51,28 +51,28 @@ def pus_factory_hook(raw_tm_packet: bytes):
tm_packet = None
if service_type == 1:
handle_service_1_packet(printer=FSFW_PRINTER, raw_tm=raw_tm_packet)
if service_type == 2:
elif service_type == 2:
tm_packet = Service2Tm.unpack(raw_tm_packet)
dedicated_handler = False
if service_type == 3:
elif service_type == 3:
handle_hk_packet(
printer=FSFW_PRINTER, raw_tm=raw_tm_packet, obj_id_dict=obj_id_dict
)
if service_type == 8:
elif service_type == 8:
handle_action_reply(
raw_tm=raw_tm_packet, printer=FSFW_PRINTER, obj_id_dict=obj_id_dict
)
if service_type == 5:
elif service_type == 5:
handle_event_packet(
raw_tm=raw_tm_packet, printer=FSFW_PRINTER, file_logger=file_logger
)
if service_type == 17:
elif service_type == 17:
tm_packet = Service17TMExtended.unpack(raw_telemetry=raw_tm_packet)
dedicated_handler = False
if service_type == 20:
elif service_type == 20:
tm_packet = Service20FsfwTm.unpack(raw_telemetry=raw_tm_packet)
dedicated_handler = False
if service_type == 200:
elif service_type == 200:
tm_packet = Service200FsfwTm.unpack(raw_telemetry=raw_tm_packet)
dedicated_handler = False
else: