diff options
-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; } |