fix FastRTPSGen version verification

This commit is contained in:
TSC21
2019-10-04 16:56:03 +01:00
committed by Nuno Marques
parent 9c00f3de02
commit e7b0384f05
7 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ void RtpsTopics::publish(uint8_t topic_ID, char data_buffer[], size_t len)
@[for topic in send_topics]@
case @(rtps_message_id(ids, topic)): // @(topic)
{
@[ if 1.5 < fastrtpsgen_version <= 1.7]@
@[ if 1.5 <= fastrtpsgen_version[0] <= 1.7]@
@(topic)_ st;
@[ else]@
@(topic) st;
@@ -149,7 +149,7 @@ bool RtpsTopics::getMsg(const uint8_t topic_ID, eprosima::fastcdr::Cdr &scdr)
case @(rtps_message_id(ids, topic)): // @(topic)
if (_@(topic)_sub.hasMsg())
{
@[ if 1.5 < fastrtpsgen_version <= 1.7]@
@[ if 1.5 <= fastrtpsgen_version[0] <= 1.7]@
@(topic)_ msg = _@(topic)_sub.getMsg();
@[ else]@
@(topic) msg = _@(topic)_sub.getMsg();