diff --git a/pus_tc/pdu1.py b/pus_tc/pdu1.py index 22f9c8e..e512607 100644 --- a/pus_tc/pdu1.py +++ b/pus_tc/pdu1.py @@ -80,7 +80,7 @@ def pack_pdu1_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str): if op_code == Pdu1OpCodes.PRINT_SWITCH_STATE.value: tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Print Switch Status")) command = generate_action_command( - object_id=object_id, action_id=int(Pdu1OpCodes.PRINT_SWITCH_STATE.value) + object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_STATE ) tc_queue.appendleft(command.pack_command_tuple()) diff --git a/pus_tc/pdu2.py b/pus_tc/pdu2.py index dc4832e..2c08137 100644 --- a/pus_tc/pdu2.py +++ b/pus_tc/pdu2.py @@ -62,7 +62,7 @@ def pack_pdu2_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str) if op_code == Pdu2OpCodes.PRINT_SWITCH_STATE.value: tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Print Switch Status")) command = generate_action_command( - object_id=object_id, action_id=int(Pdu2OpCodes.PRINT_SWITCH_STATE.value) + object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_STATE ) tc_queue.appendleft(command.pack_command_tuple())