|
|
@@ -973,7 +973,8 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
|
|
|
ports = serial.tools.list_ports.comports()
|
|
|
# 遍历所有端口并打印信息
|
|
|
for port in ports:
|
|
|
- if "CH340" in port.description:
|
|
|
+ # logger.info("扫描到的串口信息:{}".format(port.description))
|
|
|
+ if "CH34" in port.description:
|
|
|
ports_dict[port.name] = {
|
|
|
"name": port.name,
|
|
|
"device": port.device,
|