summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/usrp_sink_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_sink_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_sink_impl.h')
-rw-r--r--gr-uhd/lib/usrp_sink_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-uhd/lib/usrp_sink_impl.h b/gr-uhd/lib/usrp_sink_impl.h
index 18507ffe89..45b2723569 100644
--- a/gr-uhd/lib/usrp_sink_impl.h
+++ b/gr-uhd/lib/usrp_sink_impl.h
@@ -142,6 +142,8 @@ private:
bool _async_event_loop_running;
void async_event_loop();
gr::thread::thread _async_event_thread;
+
+ const pmt::pmt_t _direction() const override { return ant_direction_tx(); };
};
} /* namespace uhd */