laforge
/
openbts-osmo
Archived
1
0
Fork 0

uhd: update to new uhd range api

Fixes the following that occurs with recent uhd changes.

UHDDevice.cpp:260: error: ‘struct uhd::gain_range_t’ has no member named ‘max’
UHDDevice.cpp:260: error: ‘struct uhd::gain_range_t’ has no member named ‘min’

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2010-11-16 19:59:58 -05:00
parent 589dd9091e
commit aaf378a111
1 changed files with 2 additions and 2 deletions

View File

@ -257,9 +257,9 @@ bool UHDDevice::open()
// Set gains to midpoint
uhd::gain_range_t txGainRange = usrpDevice->get_tx_gain_range();
usrpDevice->set_tx_gain((txGainRange.max + txGainRange.min) / 2);
usrpDevice->set_tx_gain((txGainRange.start() + txGainRange.stop()) / 2);
uhd::gain_range_t rxGainRange = usrpDevice->get_rx_gain_range();
usrpDevice->set_rx_gain((rxGainRange.max + rxGainRange.min) / 2);
usrpDevice->set_rx_gain((rxGainRange.start() + rxGainRange.stop()) / 2);
// Set reference clock
uhd::clock_config_t clock_config;