From 28bf20a19c98c7e99a67d7186d539aea28133df0 Mon Sep 17 00:00:00 2001 From: steviez Date: Tue, 11 Feb 2020 09:58:01 -0600 Subject: rfnoc: actions: Fix uninitialized timestamps tx_event_action_info objects were being created with uninitialized timestamp members which led to uhd::tx_streamer::recv_async_msg() returning with invalid timestamps --- host/include/uhd/rfnoc/actions.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/actions.hpp b/host/include/uhd/rfnoc/actions.hpp index 7326cfd6d..681a9da3d 100644 --- a/host/include/uhd/rfnoc/actions.hpp +++ b/host/include/uhd/rfnoc/actions.hpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -93,10 +94,12 @@ public: uint64_t tsf; //! Factory function - static sptr make(uhd::async_metadata_t::event_code_t event_code); + static sptr make(uhd::async_metadata_t::event_code_t event_code, + const boost::optional& tsf); protected: - tx_event_action_info(uhd::async_metadata_t::event_code_t event_code); + tx_event_action_info(uhd::async_metadata_t::event_code_t event_code, + const boost::optional& tsf); }; }} /* namespace uhd::rfnoc */ -- cgit v1.2.3