diff --git a/source/RobotAPI/components/GamepadControlUnit/GamepadControlUnit.cpp b/source/RobotAPI/components/GamepadControlUnit/GamepadControlUnit.cpp index 5c413bf4dde89427307e929523f9aa7d29b9a8bc..b7d21d33b49202aa16928be602d306ed522ad9a1 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); }