From eb8d52607b49b091764940f7d909b7e525238d1c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 7 Sep 2021 16:10:40 +0200 Subject: [PATCH] improvement --- pus_tc/pdu1.py | 2 +- pus_tc/pdu2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())