diff --git a/lib/osmosdr/osmosdr_src_c.cc b/lib/osmosdr/osmosdr_src_c.cc index 4b029f8..6ca034c 100644 --- a/lib/osmosdr/osmosdr_src_c.cc +++ b/lib/osmosdr/osmosdr_src_c.cc @@ -115,6 +115,10 @@ osmosdr_src_c::osmosdr_src_c (const std::string &args) if (ret < 0) throw std::runtime_error("Failed to open osmosdr device."); + ret = osmosdr_set_fpga_iq_swap(_dev, 0); + if (ret < 0) + throw std::runtime_error("Failed to disable IQ swapping."); + ret = osmosdr_set_sample_rate( _dev, 1000000 ); if (ret < 0) throw std::runtime_error("Failed to set default samplerate.");