From 2e014fbc227609451f530c96104a29c88dc6626c Mon Sep 17 00:00:00 2001
From: Markus Grotz <Markus Grotz markus.grotz@kit.edu>
Date: Thu, 28 May 2020 16:17:39 +0200
Subject: [PATCH] fix GamepadControlUnit

---
 .../components/GamepadControlUnit/GamepadControlUnit.cpp        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/RobotAPI/components/GamepadControlUnit/GamepadControlUnit.cpp b/source/RobotAPI/components/GamepadControlUnit/GamepadControlUnit.cpp
index 5c413bf4d..b7d21d33b 100644
--- a/source/RobotAPI/components/GamepadControlUnit/GamepadControlUnit.cpp
+++ b/source/RobotAPI/components/GamepadControlUnit/GamepadControlUnit.cpp
@@ -73,7 +73,7 @@ namespace armarx
 
     void GamepadControlUnit::reportGamepadState(const std::string& device, const std::string& name, const GamepadData& data, const TimestampBasePtr& timestamp, const Ice::Current& c)
     {
-        if (data.leftTrigger)
+        if (data.leftTrigger > 0)
         {
             emergencyStop->setEmergencyStopState(EmergencyStopState::eEmergencyStopActive);
         }
-- 
GitLab