fix autoconnect

switch autoconnect over to vid due to MS description and name implement
This commit is contained in:
GameTec_live
2023-07-17 16:43:48 +02:00
parent bcdfc121bc
commit 02ef90a901
+1 -1
View File
@@ -197,7 +197,7 @@ class HWConnect(BaseCLIUnit):
if args.port is None: # Chameleon Autodedect if no port is supplied
# loop through all ports and find chameleon
for port in serial.tools.list_ports.comports():
if port.manufacturer.startswith("Proxgrind") and port.description.startswith("Chameleon"):
if port.vid == 0x6868:
args.port = port.device
break
if args.port is None: # If no chameleon was found, exit