Commit 0d875deb authored by Thomas Tsou's avatar Thomas Tsou
Browse files

uhd: use set/get pair for setting frequency

Simply because it's simpler.
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
......@@ -93,13 +93,14 @@ float usrp_source::sample_rate() {
int usrp_source::tune(double freq) {
uhd::tune_result_t tr;
double actual_freq;
pthread_mutex_lock(&m_u_mutex);
tr = m_dev->set_rx_freq(freq);
m_dev->set_rx_freq(freq);
actual_freq = m_dev->get_rx_freq();
pthread_mutex_unlock(&m_u_mutex);
return tr.actual_inter_freq + tr.actual_dsp_freq;
return actual_freq;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment