From 5c65390a8b0344c41728d276729cae0a2cc1d9d1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 16 Sep 2021 15:00:16 +0200 Subject: [PATCH] fix for new commands --- pus_tc/pdu2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pus_tc/pdu2.py b/pus_tc/pdu2.py index 325585b..ad2b90a 100644 --- a/pus_tc/pdu2.py +++ b/pus_tc/pdu2.py @@ -96,13 +96,13 @@ def pack_pdu2_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str) object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_STATES ) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == PduOpCodes.PRINT_CURRENTS: + if op_code == PduOpCodes.PRINT_CURRENTS.value: tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Print Currents")) command = generate_action_command( object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_CURRENTS ) tc_queue.appendleft(command.pack_command_tuple()) - if op_code == PduOpCodes.PRINT_VOLTAGES: + if op_code == PduOpCodes.PRINT_VOLTAGES.value: tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Print Voltages")) command = generate_action_command( object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_VOLTAGES