Skip to content

Commit

Permalink
Add support for the EVK3 HD
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed Jun 20, 2023
1 parent 09a5c92 commit dc08eed
Show file tree
Hide file tree
Showing 7 changed files with 1,117 additions and 76 deletions.
3 changes: 1 addition & 2 deletions drivers/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ impl<Configuration: Clone + Send + 'static> Updater<Configuration> {
) -> Self
where
ContextType: Send + 'static,
Update:
Fn(ContextType, &Configuration, &Configuration) -> ContextType + Send + 'static,
Update: Fn(ContextType, &Configuration, &Configuration) -> ContextType + Send + 'static,
{
let previous_configuration = initial_configuration.clone();
let flagged_configuration_and_condition = std::sync::Arc::new((
Expand Down
6 changes: 2 additions & 4 deletions drivers/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ pub trait Usb: Sized {
};
match serial {
Some(serial) => {
let device_serial = match Self::read_serial(&mut handle)
{
let device_serial = match Self::read_serial(&mut handle) {
Ok(serial) => serial,
Err(_) => return None, // ignore errors to support devices that are already open
};
Expand All @@ -95,8 +94,7 @@ pub trait Usb: Sized {
}
}
None => {
let device_serial = match Self::read_serial(&mut handle)
{
let device_serial = match Self::read_serial(&mut handle) {
Ok(serial) => serial,
Err(_) => return None, // ignore errors to support devices that are already open
};
Expand Down
Loading

0 comments on commit dc08eed

Please sign in to comment.