diff --git a/Cargo.toml b/Cargo.toml index 13acac9..5b3677e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,7 @@ license = "Apache-2.0" repository = "https://github.com/FutureSDR/seify" [features] -# default = ["soapy"] -default = ["hackrfone"] +default = ["soapy"] rtlsdr = ["dep:seify-rtlsdr"] hackrfone = ["dep:seify-hackrfone"] aaronia = ["dep:aaronia-rtsa"] diff --git a/crates/seify-hackrfone b/crates/seify-hackrfone index 9f08ce5..feabbd1 160000 --- a/crates/seify-hackrfone +++ b/crates/seify-hackrfone @@ -1 +1 @@ -Subproject commit 9f08ce5cf59492f484eedb02ae1fcc1af354f196 +Subproject commit feabbd1d8ee53f96e1ab42a1405d26e61face093 diff --git a/src/impls/hackrfone.rs b/src/impls/hackrfone.rs index c219865..aeef620 100644 --- a/src/impls/hackrfone.rs +++ b/src/impls/hackrfone.rs @@ -1,7 +1,4 @@ -use std::{ - os::fd::{FromRawFd, OwnedFd}, - sync::{Arc, Mutex}, -}; +use std::sync::{Arc, Mutex}; use num_complex::Complex32; use seify_hackrfone::Config; @@ -34,6 +31,9 @@ impl HackRfOne { pub fn open>(args: A) -> Result { let args: Args = args.try_into().or(Err(Error::ValueError))?; + // TODO(troy): + // re-enable once new version of nusb is published: https://github.com/kevinmehall/nusb/issues/84 + /* if let Ok(fd) = args.get::("fd") { let fd = unsafe { OwnedFd::from_raw_fd(fd) }; @@ -45,6 +45,7 @@ impl HackRfOne { }), }); } + */ let bus_number = args.get("bus_number"); let address = args.get("address");