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:
parent
0ff69c95ff
commit
79a1cf3d34
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in New Issue