From a9f8d1787a6f92abfeae709440081d1879955ed1 Mon Sep 17 00:00:00 2001 From: rickwu4444 Date: Wed, 6 Nov 2024 09:23:37 +0800 Subject: [PATCH] Add reference of the rs485 init value --- .../checkbox-provider-ce-oem/bin/serial_config_parser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/serial_config_parser.py b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/serial_config_parser.py index 5fb71dbf2..bb31d8071 100755 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/serial_config_parser.py +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/serial_config_parser.py @@ -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,