laforge
/
openbts-osmo
Archived
1
0
Fork 0

uhd: set receive gain during initialization

This shouldn't matter much, but the gain settings through the
interface are short circuited right now, which makes this a
problem.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-05-06 13:31:12 -04:00
parent 0ff69c95ff
commit 79a1cf3d34
2 changed files with 2 additions and 0 deletions

View File

@ -297,6 +297,7 @@ bool uhd_device::open()
// Set gains to midpoint
set_usrp_tx_gain(usrp_dev, 0.0);
set_usrp_rx_gain(usrp_dev, 0.0);
// Set reference clock
set_usrp_ref_clk(usrp_dev, use_ext_ref);

View File

@ -315,6 +315,7 @@ bool uhd_device::open()
// Set gains to midpoint
set_usrp_tx_gain(usrp_dev, 0.0);
set_usrp_rx_gain(usrp_dev, 0.0);
// Set reference clock
set_usrp_ref_clk(usrp_dev, use_ext_ref);