rambo 6 天之前
父節點
當前提交
fcabef2986
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      python/mcu/DeviceControl.py

+ 2 - 1
python/mcu/DeviceControl.py

@@ -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,