summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/uhd_mimo_source.cc
diff options
context:
space:
mode:
authorJohnathan Corgan2010-07-22 17:34:20 -0700
committerJohnathan Corgan2010-07-22 17:34:20 -0700
commit566363ff8077c92a0899513bd27165be8d70f41b (patch)
tree4ab35fb549b3d439e8b8c881273b54e827723b14 /gr-uhd/lib/uhd_mimo_source.cc
parentb055c7b35144093aa31830bf891c18a9751beb86 (diff)
parentc3c4303b9fa4987369e9641ab4206724da74f3b2 (diff)
downloadgnuradio-566363ff8077c92a0899513bd27165be8d70f41b.tar.gz
gnuradio-566363ff8077c92a0899513bd27165be8d70f41b.tar.bz2
gnuradio-566363ff8077c92a0899513bd27165be8d70f41b.zip
Merge remote branch 'jblum/uhd' into next
* jblum/uhd: uhd: better error messages for tune and set sample rate
Diffstat (limited to 'gr-uhd/lib/uhd_mimo_source.cc')
-rw-r--r--gr-uhd/lib/uhd_mimo_source.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-uhd/lib/uhd_mimo_source.cc b/gr-uhd/lib/uhd_mimo_source.cc
index 28bd1e109..b620a56fc 100644
--- a/gr-uhd/lib/uhd_mimo_source.cc
+++ b/gr-uhd/lib/uhd_mimo_source.cc
@@ -55,7 +55,7 @@ public:
void set_samp_rate_all(double rate){
_dev->set_rx_rate_all(rate);
- do_samp_rate_error_message(rate, get_samp_rate_all());
+ do_samp_rate_error_message(rate, get_samp_rate_all(), "RX");
}
double get_samp_rate_all(void){
@@ -63,7 +63,9 @@ public:
}
uhd::tune_result_t set_center_freq(size_t chan, double freq){
- return _dev->set_rx_freq(chan, freq);
+ uhd::tune_result_t tr = _dev->set_rx_freq(chan, freq);
+ do_tune_freq_error_message(freq, _dev->get_rx_freq(chan), "RX");
+ return tr;
}
uhd::freq_range_t get_freq_range(size_t chan){