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/lib/rfnoc/radio_control_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib/rfnoc/radio_control_impl.cpp') diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp index 4d03708bf..6c7a769df 100644 --- a/host/lib/rfnoc/radio_control_impl.cpp +++ b/host/lib/rfnoc/radio_control_impl.cpp @@ -930,7 +930,7 @@ void radio_control_impl::async_message_handler( switch (code) { case err_codes::ERR_TX_UNDERRUN: { auto tx_event_action = tx_event_action_info::make( - uhd::async_metadata_t::EVENT_CODE_UNDERFLOW); + uhd::async_metadata_t::EVENT_CODE_UNDERFLOW, timestamp); post_action(res_source_info{res_source_info::INPUT_EDGE, chan}, tx_event_action); UHD_LOG_FASTPATH("U"); @@ -939,7 +939,7 @@ void radio_control_impl::async_message_handler( } case err_codes::ERR_TX_LATE_DATA: { auto tx_event_action = tx_event_action_info::make( - uhd::async_metadata_t::EVENT_CODE_TIME_ERROR); + uhd::async_metadata_t::EVENT_CODE_TIME_ERROR, timestamp); post_action(res_source_info{res_source_info::INPUT_EDGE, chan}, tx_event_action); UHD_LOG_FASTPATH("L"); @@ -948,7 +948,7 @@ void radio_control_impl::async_message_handler( } case err_codes::EVENT_TX_BURST_ACK: { auto tx_event_action = tx_event_action_info::make( - uhd::async_metadata_t::EVENT_CODE_BURST_ACK); + uhd::async_metadata_t::EVENT_CODE_BURST_ACK, timestamp); post_action(res_source_info{res_source_info::INPUT_EDGE, chan}, tx_event_action); RFNOC_LOG_TRACE("Posting burst ack event action message."); -- cgit v1.2.3