forked from sdr/gr-osmosdr
osmosdr: disable IQ swapping feature
This commit is contained in:
parent
05700e6092
commit
c6fa979160
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue