Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wlkata_mirobot/wlkata_mirobot_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ def __init__(self, mirobot, portname=None, baudrate=None, stopbits=None, exclusi
if autofindport and portname is None:
self.default_portname = self._find_portname()
""" The default portname to use when making connections. To override this on a individual basis, provide portname to each invokation of `WlkataMirobotGcodeProtocol.connect`. """
serial_device_kwargs['portname'] = self.default_portname
self.logger.info(f"Using Serial Port \"{self.default_portname}\"")
else:
# 设置端口号
self.default_portname = portname
serial_device_kwargs['portname'] = self.default_portname
# 创建串口设备
self.serial_device = DeviceSerial(**serial_device_kwargs)
# 打开串口
Expand Down