Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump seify-hackrfone to v0.1.0 #11

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion crates/seify-hackrfone
9 changes: 5 additions & 4 deletions src/impls/hackrfone.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -34,6 +31,9 @@ impl HackRfOne {
pub fn open<A: TryInto<Args>>(args: A) -> Result<Self, Error> {
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::<i32>("fd") {
let fd = unsafe { OwnedFd::from_raw_fd(fd) };

Expand All @@ -45,6 +45,7 @@ impl HackRfOne {
}),
});
}
*/

let bus_number = args.get("bus_number");
let address = args.get("address");
Expand Down