Skip to content

Commit

Permalink
Refs #20738. Fix latency test
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Apr 3, 2024
1 parent a2f4664 commit 14e8cf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/performance/latency/LatencyTestSubscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,10 @@ void LatencyTestSubscriber::LatencyDataReaderListener::on_data_available(
if (sub->echo_)
{
// no bounce overload recorded
reinterpret_cast<LatencyType*>(data)->bounce = 0;
if (!sub->dynamic_types_)
{
reinterpret_cast<LatencyType*>(data)->bounce = 0;
}

if (!sub->data_writer_->write(data))
{
Expand Down

0 comments on commit 14e8cf5

Please sign in to comment.