From 240ada09e0806f3b455148d4f1d09013db9db2d1 Mon Sep 17 00:00:00 2001 From: Christian Dreher <c.dreher@kit.edu> Date: Thu, 19 Sep 2024 17:53:11 +0200 Subject: [PATCH] fix: Deactivate spam --- .../units/RobotUnit/Devices/GlobalRobotPoseSensorDevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/RobotAPI/components/units/RobotUnit/Devices/GlobalRobotPoseSensorDevice.cpp b/source/RobotAPI/components/units/RobotUnit/Devices/GlobalRobotPoseSensorDevice.cpp index 2bb041a7b..4c3040cdb 100644 --- a/source/RobotAPI/components/units/RobotUnit/Devices/GlobalRobotPoseSensorDevice.cpp +++ b/source/RobotAPI/components/units/RobotUnit/Devices/GlobalRobotPoseSensorDevice.cpp @@ -123,12 +123,13 @@ namespace armarx { if (sensorGlobalPositionCorrection == nullptr) { - ARMARX_ERROR << "The global position correction sensor is not available."; + ARMARX_ERROR << "The global position correction sensor is not available." + << deactivateSpam(1); return; } if (sensorRelativePosition == nullptr) { - ARMARX_ERROR << "The relative position sensor is not available."; + ARMARX_ERROR << "The relative position sensor is not available." << deactivateSpam(1); return; } -- GitLab