From 91faad7079b75f6f03b58c8c7874d1d0f554c900 Mon Sep 17 00:00:00 2001 From: Yadu Date: Mon, 22 Jul 2024 03:45:27 -0700 Subject: [PATCH] Use correct history enums (#244) Signed-off-by: Yadunund --- rmw_zenoh_cpp/src/detail/qos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmw_zenoh_cpp/src/detail/qos.cpp b/rmw_zenoh_cpp/src/detail/qos.cpp index 87a336f1..ef4d1b01 100644 --- a/rmw_zenoh_cpp/src/detail/qos.cpp +++ b/rmw_zenoh_cpp/src/detail/qos.cpp @@ -79,8 +79,8 @@ rmw_ret_t QoS::best_available_qos( static_cast(get_endpoint_info_for_other); switch (qos_profile->history) { - case RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT: - case RMW_QOS_POLICY_RELIABILITY_UNKNOWN: + case RMW_QOS_POLICY_HISTORY_SYSTEM_DEFAULT: + case RMW_QOS_POLICY_HISTORY_UNKNOWN: qos_profile->history = default_qos_.history; default: break;