From 765640e8c7637e4a48fa33e86b0118209a524fcd Mon Sep 17 00:00:00 2001 From: Kristof Hannemann <50989282+hannemn@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:08:38 +0100 Subject: [PATCH] Fixed order of sender and receiver timestamp in make_frame() method --- .../measurement/base/include/ecal/measurement/imeasurement.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/measurement/base/include/ecal/measurement/imeasurement.h b/contrib/measurement/base/include/ecal/measurement/imeasurement.h index 00d8c12068..cfc5081776 100644 --- a/contrib/measurement/base/include/ecal/measurement/imeasurement.h +++ b/contrib/measurement/base/include/ecal/measurement/imeasurement.h @@ -48,7 +48,7 @@ namespace eCAL meas->GetEntryDataSize(entry.ID, message_size); data.resize(message_size); meas->GetEntryData(entry.ID, (void*)data.data()); - return make_frame( data, entry.RcvTimestamp, entry.SndTimestamp ); + return make_frame( data, entry.SndTimestamp, entry.RcvTimestamp ); } std::string name() @@ -188,7 +188,7 @@ namespace eCAL // return m_owner[*m_entry_iterator]; BinaryFrame e = *it; eCAL::message::Deserialize(e.message, message); - return make_frame(message, e.receive_timestamp, e.send_timestamp); + return make_frame(message, e.send_timestamp, e.receive_timestamp); }; //friend void swap(iterator& lhs, iterator& rhs); //C++11 I think bool operator==(const iterator& rhs) const { return it == rhs.it; };