From e4aa5f028311ce6e65bebf7a3df2ffe61f5e4c45 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Fri, 18 Aug 2023 15:17:03 +0200 Subject: [PATCH] Cleanup of left-overs that shouldn't be there --- app/Peripherals/Mouse/AsusMouse.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/Peripherals/Mouse/AsusMouse.cs b/app/Peripherals/Mouse/AsusMouse.cs index 6c05ec66..d2be78e5 100644 --- a/app/Peripherals/Mouse/AsusMouse.cs +++ b/app/Peripherals/Mouse/AsusMouse.cs @@ -935,18 +935,19 @@ namespace GHelper.Peripherals.Mouse byte[]? response = WriteForResponse(GetReadAccelerationPacket()); if (response is null) return; - if (HasAcceleration()) Acceleration = ParseAcceleration(response); - if (HasDeceleration()) Deceleration = ParseDeceleration(response); - - for (int i = 0; i < DPIProfileCount(); ++i) + if (HasAcceleration()) { - Logger.WriteLine(GetDisplayName() + ": Read DPI Setting " + (i + 1) + ": " + DpiSettings[i].ToString()); + Acceleration = ParseAcceleration(response); + Logger.WriteLine(GetDisplayName() + ": Read Acceleration: " + Acceleration); } + if (HasDeceleration()) + { + Deceleration = ParseDeceleration(response); + Logger.WriteLine(GetDisplayName() + ": Read Deceleration: " + Deceleration); + } } - //TODO: Implement Acceleration Reading - // ------------------------------------------------------------------------------ // DPI // ------------------------------------------------------------------------------