format stuff
This commit is contained in:
parent
abe71c0206
commit
96346461b4
@ -45,14 +45,18 @@ def pack_pdu2_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str)
|
|||||||
|
|
||||||
if op_code == Pdu2OpCodes.ACS_SIDE_B_ON.value:
|
if op_code == Pdu2OpCodes.ACS_SIDE_B_ON.value:
|
||||||
tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Turn ACS Side B on"))
|
tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Turn ACS Side B on"))
|
||||||
command = pack_set_param_command(object_id, PDUConfigTable.out_en_7.parameter_address,
|
command = pack_set_param_command(
|
||||||
PDUConfigTable.out_en_7.parameter_size, Channel.on)
|
object_id, PDUConfigTable.out_en_7.parameter_address,
|
||||||
|
PDUConfigTable.out_en_7.parameter_size, Channel.on
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
return tc_queue
|
return tc_queue
|
||||||
if op_code == Pdu2OpCodes.ACS_SIDE_B_OFF.value:
|
if op_code == Pdu2OpCodes.ACS_SIDE_B_OFF.value:
|
||||||
tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Turn ACS Side B off"))
|
tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Turn ACS Side B off"))
|
||||||
command = pack_set_param_command(object_id, PDUConfigTable.out_en_7.parameter_address,
|
command = pack_set_param_command(
|
||||||
PDUConfigTable.out_en_7.parameter_size, Channel.off)
|
object_id, PDUConfigTable.out_en_7.parameter_address,
|
||||||
|
PDUConfigTable.out_en_7.parameter_size, Channel.off
|
||||||
|
)
|
||||||
tc_queue.appendleft(command.pack_command_tuple())
|
tc_queue.appendleft(command.pack_command_tuple())
|
||||||
return tc_queue
|
return tc_queue
|
||||||
if op_code == Pdu2OpCodes.PRINT_SWITCH_STATE.value:
|
if op_code == Pdu2OpCodes.PRINT_SWITCH_STATE.value:
|
||||||
|
Loading…
Reference in New Issue
Block a user