From db859fb4db09859ae8561adfe287e159e7ff0cb0 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 11 Nov 2018 04:56:10 -0600 Subject: [PATCH] Changed test rumble check to remove implicit data coercion --- DS4Windows/DS4Library/DS4Device.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index f8732c8..69e7fd8 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -106,7 +106,8 @@ namespace DS4Windows public bool IsRumbleSet() { - return RumbleMotorsExplicitlyOff || RumbleMotorStrengthLeftHeavySlow != 0 || RumbleMotorStrengthRightLightFast != 0; + const byte zero = 0; + return RumbleMotorsExplicitlyOff || RumbleMotorStrengthLeftHeavySlow != zero || RumbleMotorStrengthRightLightFast != zero; } }