diff --git a/src/commands/control.rs b/src/commands/control.rs index 553ab03..7e614a7 100644 --- a/src/commands/control.rs +++ b/src/commands/control.rs @@ -52,7 +52,7 @@ impl fmt::Display for ProbeInfo { "WCH-Link v{}.{}(v{}) ({})", self.major_version, self.minor_version, - self.major_version + self.minor_version * 10, + self.major_version * 10 + self.minor_version, self.variant ) } diff --git a/src/probe.rs b/src/probe.rs index f0653f1..d67e0e5 100644 --- a/src/probe.rs +++ b/src/probe.rs @@ -113,6 +113,9 @@ impl WchLink { }; let info = this.send_command(commands::control::GetProbeInfo)?; this.info = info; + + log::info!("Connected to {}", this.info); + Ok(this) }