Skip to content

Commit

Permalink
Enable the bench to find an nScope needing an update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjmeyer committed Jan 7, 2024
1 parent 6720c36 commit 03a9fdf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lab_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,16 @@ impl LabBench {
}
None
}

/// Returns the first nScope that is available and needs an update
pub fn get_first_needing_update(&self) -> Option<NscopeLink> {
for nsl in self.list() {
if nsl.needs_update && nsl.available {
return Some(nsl)
}
}
None
}
}

impl NscopeLink {
Expand Down

0 comments on commit 03a9fdf

Please sign in to comment.