From 2bebd8ee79a8c7df47d39b011f52d9554eae4dc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20Gr=C3=B6ger?= <tobias-groeger@student.kit.edu>
Date: Thu, 19 Oct 2023 16:11:48 +0200
Subject: [PATCH] GamepadUnit: reducing spamming

---
 source/RobotAPI/drivers/GamepadUnit/GamepadUnit.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/source/RobotAPI/drivers/GamepadUnit/GamepadUnit.cpp b/source/RobotAPI/drivers/GamepadUnit/GamepadUnit.cpp
index 1e7dacc34..14cc8fb49 100644
--- a/source/RobotAPI/drivers/GamepadUnit/GamepadUnit.cpp
+++ b/source/RobotAPI/drivers/GamepadUnit/GamepadUnit.cpp
@@ -22,6 +22,7 @@
 
 #include "GamepadUnit.h"
 
+#include "ArmarXCore/core/logging/Logging.h"
 #include <ArmarXCore/util/CPPUtility/trace.h>
 #include <ArmarXCore/observers/variant/TimestampVariant.h>
 #include <linux/joystick.h>
@@ -53,7 +54,7 @@ void GamepadUnit::onConnectComponent()
         ARMARX_TRACE;
         if (!dataTimestamp)
         {
-            ARMARX_INFO << "dataTimestamp is null, waiting for value";
+            ARMARX_INFO << deactivateSpam(1) << "dataTimestamp is null, waiting for value";
             return;
         }
         ARMARX_CHECK_NOT_NULL(dataTimestamp);
-- 
GitLab