Skip to content

Commit

Permalink
Update FASTRTPS version check in CommonReader and CommonWriter
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
  • Loading branch information
irenebm committed Jan 22, 2024
1 parent 5dcfd24 commit 4c0071e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ddspipe_participants/src/cpp/reader/dds/CommonReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void CommonReader::init()
// Create CommonReader
// Listener must be set in creation as no callbacks should be missed
// It is safe to do so here as object is already created and callbacks do not require anything set in this method
#if FASTRTPS_VERSION_MAJOR <= 2 && FASTRTPS_VERSION_MINOR < 13
#if FASTRTPS_VERSION_MAJOR <= 2 && FASTRTPS_VERSION_MINOR < 12
reader_ = dds_subscriber_->create_datareader_with_payload_pool(
dds_topic_,
reckon_reader_qos_(),
Expand Down
2 changes: 1 addition & 1 deletion ddspipe_participants/src/cpp/writer/dds/CommonWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void CommonWriter::init()
participant_id_ << " in topic " << topic_ << ".");
}

#if FASTRTPS_VERSION_MAJOR <= 2 && FASTRTPS_VERSION_MINOR < 13
#if FASTRTPS_VERSION_MAJOR <= 2 && FASTRTPS_VERSION_MINOR < 12
writer_ = dds_publisher_->create_datawriter_with_payload_pool(
dds_topic_,
reckon_writer_qos_(),
Expand Down

0 comments on commit 4c0071e

Please sign in to comment.