Default Profile is 0, so use that if decoding fails to have a sane fallback.

This commit is contained in:
IceStormNG
2023-08-18 15:09:12 +02:00
parent 1d03eb064a
commit 18b664a123

View File

@@ -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)