Skip to content

Commit

Permalink
Fix Args conversion for soapysdr driver
Browse files Browse the repository at this point in the history
  • Loading branch information
porkiedev committed Feb 23, 2024
1 parent 5bfc8c5 commit 29cce67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/impls/soapy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ impl TryFrom<soapysdr::Args> for Args {
type Error = Error;

fn try_from(value: soapysdr::Args) -> Result<Self, Self::Error> {
value.to_string().try_into()
let mut a = Self::new();
for (key, value) in value.iter() {
a.set(key, value);
}
Ok(a)
}
}

0 comments on commit 29cce67

Please sign in to comment.