summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/usrp_source_impl.h
diff options
context:
space:
mode:
authorJacob Gilbert <jacob.gilbert@protonmail.com>2021-03-29 20:48:45 -0600
committermormj <34754695+mormj@users.noreply.github.com>2021-04-05 07:28:48 -0400
commitdeb4c4dd97cb668b399496d8edab2cfa8d69f85b (patch)
tree9aea07f580eaee0891649a8c55d08a7e5f7b84d7 /gr-uhd/lib/usrp_source_impl.h
parentd2680c18d36148cd87582ec4adc6f38b27e249db (diff)
gr-uhd: fix command tuning
Command tuning has seen several updates recently and incomplete regression testing. One issue introduced is that when tuning without a direction key will result in the tune applied in the TX direction instead of the block direction (intended). This fixes that by adding member getters for block direction and putting the logic to get the command direction in a common function. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.h')
-rw-r--r--gr-uhd/lib/usrp_source_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-uhd/lib/usrp_source_impl.h b/gr-uhd/lib/usrp_source_impl.h
index 53e3387b71..f0ab1490e8 100644
--- a/gr-uhd/lib/usrp_source_impl.h
+++ b/gr-uhd/lib/usrp_source_impl.h
@@ -146,6 +146,8 @@ private:
double _samp_rate;
std::recursive_mutex d_mutex;
+
+ const pmt::pmt_t _direction() const override { return ant_direction_rx(); };
};
} /* namespace uhd */