From dc76615c93acd3e1b1f8c72f76afa8a241385444 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 29 Apr 2013 10:39:17 -0700 Subject: uhd: fixed set_center_freq channel --- gr-uhd/lib/gr_uhd_usrp_source.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gr-uhd/lib/gr_uhd_usrp_source.cc') 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; } -- cgit