v1.9.0 #53
@ -290,6 +290,11 @@ def add_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
|||||||
keys=GomspaceOpCodes.PRINT_SWITCH_V_I.value,
|
keys=GomspaceOpCodes.PRINT_SWITCH_V_I.value,
|
||||||
info="PDU1: Print Switches, Voltages, Currents",
|
info="PDU1: Print Switches, Voltages, Currents",
|
||||||
)
|
)
|
||||||
|
add_op_code_entry(
|
||||||
|
op_code_dict=op_code_dict,
|
||||||
|
keys=GomspaceOpCodes.PRINT_LATCHUPS.value,
|
||||||
|
info="PDU1: Print Latchups",
|
||||||
|
)
|
||||||
add_op_code_entry(
|
add_op_code_entry(
|
||||||
op_code_dict=op_code_dict, keys=Pdu1OpCodes.TESTS.value, info="PDU1 Tests"
|
op_code_dict=op_code_dict, keys=Pdu1OpCodes.TESTS.value, info="PDU1 Tests"
|
||||||
)
|
)
|
||||||
@ -354,7 +359,11 @@ def add_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
|||||||
info="PDU2: Print Switches, Voltages, Currents",
|
info="PDU2: Print Switches, Voltages, Currents",
|
||||||
options={OpCodeDictKeys.TIMEOUT: 2.0},
|
options={OpCodeDictKeys.TIMEOUT: 2.0},
|
||||||
)
|
)
|
||||||
|
add_op_code_entry(
|
||||||
|
op_code_dict=op_code_dict,
|
||||||
|
keys=GomspaceOpCodes.PRINT_LATCHUPS.value,
|
||||||
|
info="PDU2: Print Latchups",
|
||||||
|
)
|
||||||
add_service_op_code_entry(
|
add_service_op_code_entry(
|
||||||
srv_op_code_dict=cmd_dict,
|
srv_op_code_dict=cmd_dict,
|
||||||
name="pdu2",
|
name="pdu2",
|
||||||
|
@ -203,7 +203,7 @@ def pack_pdu1_commands(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
|
|||||||
object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_V_I
|
object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_V_I
|
||||||
)
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
if op_code == GomspaceOpCodes.PRINT_LATCHUPS:
|
if op_code == GomspaceOpCodes.PRINT_LATCHUPS.value:
|
||||||
tc_queue.appendleft(
|
tc_queue.appendleft(
|
||||||
(QueueCommands.PRINT, "PDU1: Print Latchups")
|
(QueueCommands.PRINT, "PDU1: Print Latchups")
|
||||||
)
|
)
|
||||||
|
@ -133,7 +133,7 @@ def pack_pdu2_commands(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
|
|||||||
object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_V_I
|
object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_V_I
|
||||||
)
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
if op_code == GomspaceOpCodes.PRINT_LATCHUPS:
|
if op_code == GomspaceOpCodes.PRINT_LATCHUPS.value:
|
||||||
tc_queue.appendleft(
|
tc_queue.appendleft(
|
||||||
(QueueCommands.PRINT, "PDU2: Print Latchups")
|
(QueueCommands.PRINT, "PDU2: Print Latchups")
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user