improvement
This commit is contained in:
parent
96346461b4
commit
eb8d52607b
@ -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())
|
||||
|
||||
|
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user