From dd2390c7e7331a8dcdabcd16fbdc603a78609536 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 7 Jan 2023 17:08:04 +0100 Subject: swap fl2k start and set rate --- src/main.rs | 5 +++-- 1 file 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 }; -- cgit v1.2.3