From deb4c4dd97cb668b399496d8edab2cfa8d69f85b Mon Sep 17 00:00:00 2001 From: Jacob Gilbert <jacob.gilbert@protonmail.com> Date: Mon, 29 Mar 2021 20:48:45 -0600 Subject: 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> --- gr-uhd/lib/usrp_source_impl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gr-uhd/lib/usrp_source_impl.h') 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 */ -- cgit v1.2.3