From 5a0e57f1963e3af19ca82128f2db046af86c9f31 Mon Sep 17 00:00:00 2001 From: porkiedev Date: Thu, 22 Feb 2024 20:29:45 -0600 Subject: [PATCH] Fix Args conversion for soapysdr driver --- src/impls/soapy.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/impls/soapy.rs b/src/impls/soapy.rs index 44d324d..a231925 100644 --- a/src/impls/soapy.rs +++ b/src/impls/soapy.rs @@ -413,6 +413,10 @@ impl TryFrom for Args { type Error = Error; fn try_from(value: soapysdr::Args) -> Result { - value.to_string().try_into() + let mut a = Self::new(); + for (key, value) in value.iter() { + a.set(key, value); + } + Ok(a) } }