diff --git a/src/main.rs b/src/main.rs index 5040cc93c6acf2c0f7509a2861f7df43b783d92e..5b8e187b6a8fb9c853c31788a15e8cd71189a3e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,7 +172,7 @@ fn get_first_stm32_serial_port() -> Option<String> { for port in ports { if let serialport::SerialPortType::UsbPort(info) = port.port_type { if let Some(p) = info.product { - if p.contains("STM32") { + if p.contains("STM32") || p.contains("ST-LINK") { return Some(port.port_name); } }