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:
parent
589dd9091e
commit
aaf378a111
|
@ -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;
|
||||
|
|
Reference in New Issue