diff --git a/kic-discover-visa/src/visa.rs b/kic-discover-visa/src/visa.rs index f039212..e6293ba 100644 --- a/kic-discover-visa/src/visa.rs +++ b/kic-discover-visa/src/visa.rs @@ -1,5 +1,6 @@ use std::{collections::HashSet, ffi::CString, time::Duration}; +use async_std::fs::write; use serde::{Deserialize, Serialize}; use tracing::trace; use tsp_toolkit_kic_lib::{ @@ -39,7 +40,14 @@ pub async fn visa_discover(timeout: Option) -> anyhow::Result i, + Err(_) => { + trace!("Unable to write to {i}, skipping"); + drop(connected); + continue; + } + }; info.address = Some(ConnectionAddr::Visa(i.clone())); trace!("Got info: {info:?}"); let res = model_check(info.clone().model.unwrap_or("".to_string()).as_str());