From 02ef90a90185ff76109cc352580e40adcbdd650f Mon Sep 17 00:00:00 2001 From: GameTec_live Date: Mon, 17 Jul 2023 16:43:48 +0200 Subject: [PATCH] fix autoconnect switch autoconnect over to vid due to MS description and name implement --- software/script/chameleon_cli_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index 562bfad..618bc55 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -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