if elif fix
This commit is contained in:
parent
d308899920
commit
756b300c31
@ -51,28 +51,28 @@ def pus_factory_hook(raw_tm_packet: bytes):
|
|||||||
tm_packet = None
|
tm_packet = None
|
||||||
if service_type == 1:
|
if service_type == 1:
|
||||||
handle_service_1_packet(printer=FSFW_PRINTER, raw_tm=raw_tm_packet)
|
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)
|
tm_packet = Service2Tm.unpack(raw_tm_packet)
|
||||||
dedicated_handler = False
|
dedicated_handler = False
|
||||||
if service_type == 3:
|
elif service_type == 3:
|
||||||
handle_hk_packet(
|
handle_hk_packet(
|
||||||
printer=FSFW_PRINTER, raw_tm=raw_tm_packet, obj_id_dict=obj_id_dict
|
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(
|
handle_action_reply(
|
||||||
raw_tm=raw_tm_packet, printer=FSFW_PRINTER, obj_id_dict=obj_id_dict
|
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(
|
handle_event_packet(
|
||||||
raw_tm=raw_tm_packet, printer=FSFW_PRINTER, file_logger=file_logger
|
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)
|
tm_packet = Service17TMExtended.unpack(raw_telemetry=raw_tm_packet)
|
||||||
dedicated_handler = False
|
dedicated_handler = False
|
||||||
if service_type == 20:
|
elif service_type == 20:
|
||||||
tm_packet = Service20FsfwTm.unpack(raw_telemetry=raw_tm_packet)
|
tm_packet = Service20FsfwTm.unpack(raw_telemetry=raw_tm_packet)
|
||||||
dedicated_handler = False
|
dedicated_handler = False
|
||||||
if service_type == 200:
|
elif service_type == 200:
|
||||||
tm_packet = Service200FsfwTm.unpack(raw_telemetry=raw_tm_packet)
|
tm_packet = Service200FsfwTm.unpack(raw_telemetry=raw_tm_packet)
|
||||||
dedicated_handler = False
|
dedicated_handler = False
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user