From 93af012b16e9c7d3f4b9c4ed022a7c392615790f Mon Sep 17 00:00:00 2001 From: Federico Lolli <federico.lolli@skywarder.eu> Date: Mon, 22 Jan 2024 12:48:01 +0100 Subject: [PATCH] improved logs --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cd7661f..5040cc9 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"); -- GitLab