Skip to content
Snippets Groups Projects
Commit 49fcdfe2 authored by Federico Lolli's avatar Federico Lolli
Browse files

improved auto-discovery of ST-Link devices

parent 93af012b
Branches
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment