From d745515c3d62c2a6d034b47f38e3781965520234 Mon Sep 17 00:00:00 2001 From: Boitumelo Ruf Date: Tue, 16 Jan 2024 15:15:47 +0100 Subject: [PATCH] bugfix in resetting ptp timestamp --- src/camera_aravis_nodelet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/camera_aravis_nodelet.cpp b/src/camera_aravis_nodelet.cpp index 632c692..17bceeb 100644 --- a/src/camera_aravis_nodelet.cpp +++ b/src/camera_aravis_nodelet.cpp @@ -643,7 +643,8 @@ void CameraAravisNodelet::resetPtpClock() arv_device_get_string_feature_value(p_device_, ptp_status_feature_.c_str()); if (ptp_status_str == std::string("Faulty") || ptp_status_str == std::string("Disabled") || - ptp_status_str == std::string("Initializing")) + ptp_status_str == std::string("Initializing") || + ! arv_device_get_boolean_feature_value(p_device_, ptp_enable_feature_.c_str())); { ROS_INFO("Resetting ptp clock (was set to %s)", ptp_status_str.c_str());