diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index cafc4f3..38a34d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -380,11 +380,12 @@ fn main() { match output { Output::FL2K => { let mut fl2k = fl2k::FL2K::open(device_index).expect("fl2k open"); - fl2k.start_tx().expect("fl2k start_tx"); fl2k.set_sample_rate(samp_rate).expect("set fl2k sample rate"); - eprintln!("FL2K sample ret set to {}", fl2k.get_sample_rate().unwrap()); + fl2k.start_tx().expect("fl2k start_tx"); + + eprintln!("FL2K sample rate set to {}", fl2k.get_sample_rate().unwrap()); loop { let Ok((i, q)) = iq_rx.recv() else { break }; |