Skip to content

Commit

Permalink
Add reference of the rs485 init value
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwu666666 committed Nov 6, 2024
1 parent 8288edb commit a9f8d17
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def print_ports_config(string: str, rs485_conf: str = None):
port_type, port_node, baud_rate = config_parts
serial["type"] = port_type

# Init a config dict if type is RS485
"""
Init a config dict if type is RS485, and the init value are refer
to the serial.rs485 module.
ref:
https://pyserial.readthedocs.io/en/latest/pyserial_api.html#serial.rs485.RS485Settings
"""
if port_type == "RS485":
serial["rs485_conf"] = {
"rts_level_for_tx": True,
Expand Down

0 comments on commit a9f8d17

Please sign in to comment.