diff --git a/msg/templates/urtps/Publisher.cpp.em b/msg/templates/urtps/Publisher.cpp.em index b1bc7f482e..79e40c6a7b 100644 --- a/msg/templates/urtps/Publisher.cpp.em +++ b/msg/templates/urtps/Publisher.cpp.em @@ -95,7 +95,7 @@ bool @(topic)_Publisher::init() @[else]@ PParam.domainId = 0; @[end if]@ -@[if version.parse(fastrtps_version) <= version.parse('1.8')]@ +@[if version.parse(fastrtps_version) <= version.parse('1.8.4')]@ PParam.rtps.builtin.leaseDuration = c_TimeInfinite; @[else]@ PParam.rtps.builtin.discovery_config.leaseDuration = c_TimeInfinite; diff --git a/msg/templates/urtps/Subscriber.cpp.em b/msg/templates/urtps/Subscriber.cpp.em index cb2e31ca35..5cdc6a4fe7 100644 --- a/msg/templates/urtps/Subscriber.cpp.em +++ b/msg/templates/urtps/Subscriber.cpp.em @@ -95,7 +95,7 @@ bool @(topic)_Subscriber::init(uint8_t topic_ID, std::condition_variable* t_send @[else]@ PParam.domainId = 0; @[end if]@ -@[if version.parse(fastrtps_version) <= version.parse('1.8')]@ +@[if version.parse(fastrtps_version) <= version.parse('1.8.4')]@ PParam.rtps.builtin.leaseDuration = c_TimeInfinite; @[else]@ PParam.rtps.builtin.discovery_config.leaseDuration = c_TimeInfinite;