diff --git a/src/main.rs b/src/main.rs index cd7661f57abc899b226c987141915925c95ac393..5040cc93c6acf2c0f7509a2861f7df43b783d92e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -54,12 +54,13 @@ fn main() { let port_name = if let Some(port_name) = args.port { port_name.to_owned() } else if let Some(p) = get_first_stm32_serial_port() { + debug!("found STM32 device on {}", p); p } else { error!("FATAL: no STM32 serial port found, your device may not be connected properly"); std::process::exit(1); }; - debug!("connecting to for serial port {}...", port_name); + debug!("connecting to serial port {}...", port_name); let mut port = serialport::new(port_name, args.baud_rate) .open() .expect("Failed to open serial port");