summaryrefslogtreecommitdiff
path: root/src/tuners/r820t.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tuners/r820t.rs')
-rw-r--r--src/tuners/r820t.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tuners/r820t.rs b/src/tuners/r820t.rs
index 74ac740..9844b41 100644
--- a/src/tuners/r820t.rs
+++ b/src/tuners/r820t.rs
@@ -20,10 +20,12 @@ pub const TUNER_INFO: TunerInfo = TunerInfo {
impl<'a> R820T<'a> {
pub fn new(handle: &'a RtlSdrDeviceHandle) -> R820T<'a> {
- R820T {
+ let tuner = R820T {
device: TUNER_INFO,
handle: handle,
- }
+ };
+ tuner.init();
+ tuner
}
}