Skip to content

Commit

Permalink
fix: missing probe info
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jan 8, 2024
1 parent 55672a0 commit dea79b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
3 changes: 3 additions & 0 deletions src/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit dea79b3

Please sign in to comment.