ID correction

This commit is contained in:
Robin Müller 2022-01-18 11:56:30 +01:00
parent c86cd1874f
commit d3c49c9006

View File

@ -8,7 +8,7 @@ from tmtccmd.tm.service_3_housekeeping import Service3Base
from tmtccmd.utility.logger import get_console_logger from tmtccmd.utility.logger import get_console_logger
from pus_tc.syrlinks_hk_handler import SetIds from pus_tc.syrlinks_hk_handler import SetIds
from pus_tc.imtq import ImtqSetIds from pus_tc.imtq import ImtqSetIds
from config.object_ids import SYRLINKS_HANDLER, IMTQ_HANDLER_ID, GPS_HANDLER_0_ID, GPS_HANDLER_1_ID from config.object_ids import SYRLINKS_HANDLER_ID, IMTQ_HANDLER_ID, GPS_HANDLER_0_ID, GPS_HANDLER_1_ID
LOGGER = get_console_logger() LOGGER = get_console_logger()
@ -18,7 +18,7 @@ def handle_user_hk_packet(
) -> Tuple[list, list, bytearray, int]: ) -> Tuple[list, list, bytearray, int]:
"""This function is called when a Service 3 Housekeeping packet is received. """This function is called when a Service 3 Housekeeping packet is received.
""" """
if object_id == SYRLINKS_HANDLER: if object_id == SYRLINKS_HANDLER_ID:
if set_id == SetIds.RX_REGISTERS_DATASET: if set_id == SetIds.RX_REGISTERS_DATASET:
return handle_syrlinks_rx_registers_dataset(hk_data) return handle_syrlinks_rx_registers_dataset(hk_data)
elif set_id == SetIds.TX_REGISTERS_DATASET: elif set_id == SetIds.TX_REGISTERS_DATASET: