summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/usrp_source_impl.cc
diff options
context:
space:
mode:
authorJacob Gilbert <jacob.gilbert@protonmail.com>2021-03-29 21:09:23 -0600
committermormj <34754695+mormj@users.noreply.github.com>2021-04-05 07:28:48 -0400
commit8b23f906844c9784c784934ae06dfdfe10d31a1f (patch)
treef2a1934c144d849f9273e919a533d13433efe787 /gr-uhd/lib/usrp_source_impl.cc
parentdeb4c4dd97cb668b399496d8edab2cfa8d69f85b (diff)
gr-uhd: update direction key naming
The 'ant_direction_' key getters have been reappropriated for wider use, changing to general 'direction_' and a few minor simplifications. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.cc')
-rw-r--r--gr-uhd/lib/usrp_source_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc
index 346a5bca89..b5ecdfffcd 100644
--- a/gr-uhd/lib/usrp_source_impl.cc
+++ b/gr-uhd/lib/usrp_source_impl.cc
@@ -112,7 +112,7 @@ usrp_source_impl::set_center_freq(const ::uhd::tune_request_t tune_request, size
::uhd::tune_result_t
usrp_source_impl::_set_center_freq_from_internals(size_t chan, pmt::pmt_t direction)
{
- if (pmt::eqv(direction, ant_direction_tx())) {
+ if (pmt::eqv(direction, direction_tx())) {
// TODO: what happens if the TX device is not instantiated? Catch error?
_tx_chans_to_tune.reset(chan);
return _dev->set_tx_freq(_curr_tx_tune_req[chan], _stream_args.channels[chan]);
@@ -137,7 +137,7 @@ double usrp_source_impl::get_center_freq(size_t chan)
void usrp_source_impl::set_gain(double gain, size_t chan, pmt::pmt_t direction)
{
chan = _stream_args.channels[chan];
- if (pmt::eqv(direction, ant_direction_tx())) {
+ if (pmt::eqv(direction, direction_tx())) {
return _dev->set_tx_gain(gain, chan);
} else {
return _dev->set_rx_gain(gain, chan);