add latchup print commands

This commit is contained in:
Robin Mueller
2022-03-14 14:46:00 +01:00
parent 60e938a896
commit 2251c8cbf4
5 changed files with 31 additions and 2 deletions

View File

@ -125,7 +125,14 @@ def pack_p60dock_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: st
object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_V_I
)
tc_queue.appendleft(command.pack_command_tuple())
return
if op_code == GomspaceOpCodes.PRINT_LATCHUPS.value:
tc_queue.appendleft(
(QueueCommands.PRINT, "P60 Dock: Print Latchups")
)
command = generate_action_command(
object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_LATCHUPS
)
tc_queue.appendleft(command.pack_command_tuple())
if P60DockTestProcedure.all or P60DockTestProcedure.reboot:
tc_queue.appendleft((QueueCommands.PRINT, "P60 Dock: Reboot"))
command = pack_reboot_command(object_id)