Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
kaliberate-uhd
Commits
0d875deb
Commit
0d875deb
authored
13 years ago
by
Thomas Tsou
Browse files
Options
Download
Email Patches
Plain Diff
uhd: use set/get pair for setting frequency
Simply because it's simpler.
parent
ea5e568d
master
fileinput
patch-1
streamer
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/usrp_source.cc
+4
-3
src/usrp_source.cc
with
4 additions
and
3 deletions
+4
-3
src/usrp_source.cc
+
4
-
3
View file @
0d875deb
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help