From 18b664a123fdc8af85980e712e4f4ab66b8c83fc Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Fri, 18 Aug 2023 15:09:12 +0200 Subject: [PATCH] Default Profile is 0, so use that if decoding fails to have a sane fallback. --- app/Peripherals/Mouse/AsusMouse.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Peripherals/Mouse/AsusMouse.cs b/app/Peripherals/Mouse/AsusMouse.cs index d25fa232..6c05ec66 100644 --- a/app/Peripherals/Mouse/AsusMouse.cs +++ b/app/Peripherals/Mouse/AsusMouse.cs @@ -575,7 +575,7 @@ namespace GHelper.Peripherals.Mouse return packet[11]; } Logger.WriteLine(GetDisplayName() + ": Failed to decode active profile"); - return 1; + return 0; } protected virtual int ParseDPIProfile(byte[] packet)