Skip to content

Commit

Permalink
Release v0.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
esarver committed Sep 20, 2024
1 parent b53fe3a commit a95fd8c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
Security -- in case of vulnerabilities.
-->

## [0.18.2]

### Fixed

- Fix issue in discovering instruments when VISA errors

## [0.18.1]

### Fixed
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.18.1"
version = "0.18.2"
authors = ["Keithley Instruments, LLC"]
edition = "2021"
repository = "https://github.com/tektronix/tsp-toolkit-kic-cli"
Expand Down
8 changes: 7 additions & 1 deletion kic-discover-visa/src/visa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ pub async fn visa_discover(timeout: Option<Duration>) -> anyhow::Result<HashSet<
let mut discovered_instruments: HashSet<InstrumentInfo> = HashSet::new();

let rm = visa_rs::DefaultRM::new()?;
let instruments = rm.find_res_list(&CString::new("?*")?.into())?;
let instruments = match rm.find_res_list(&CString::new("?*")?.into()) {
Ok(x) => x,
Err(e) => {
trace!("No VISA instruments found: {e}");
return Ok(discovered_instruments);
}
};
trace!("discovered: {instruments:?}");

for i in instruments {
Expand Down

0 comments on commit a95fd8c

Please sign in to comment.