diff options
author | Josh Blum | 2013-04-29 10:39:17 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-25 14:13:57 -0700 |
commit | dc76615c93acd3e1b1f8c72f76afa8a241385444 (patch) | |
tree | 1c13197121effca6f51a78386d1d1e9b6cdfb6f9 /gr-uhd/lib/gr_uhd_usrp_source.cc | |
parent | 0d62a959e9f5187e61b517cc85d94356de5e70a5 (diff) | |
download | gnuradio-dc76615c93acd3e1b1f8c72f76afa8a241385444.tar.gz gnuradio-dc76615c93acd3e1b1f8c72f76afa8a241385444.tar.bz2 gnuradio-dc76615c93acd3e1b1f8c72f76afa8a241385444.zip |
uhd: fixed set_center_freq channel
Diffstat (limited to 'gr-uhd/lib/gr_uhd_usrp_source.cc')
-rw-r--r-- | gr-uhd/lib/gr_uhd_usrp_source.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc index efb74d717..1d5a65f76 100644 --- a/gr-uhd/lib/gr_uhd_usrp_source.cc +++ b/gr-uhd/lib/gr_uhd_usrp_source.cc @@ -114,9 +114,10 @@ public: uhd::tune_result_t set_center_freq( const uhd::tune_request_t tune_request, size_t chan ){ + const size_t user_chan = chan; chan = _stream_args.channels[chan]; const uhd::tune_result_t res = _dev->set_rx_freq(tune_request, chan); - _center_freq = this->get_center_freq(chan); + _center_freq = this->get_center_freq(user_chan); _tag_now = true; return res; } |