From d8569d5d431d5d797d3295ee3605567ecae6df32 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:31:41 +0100 Subject: [PATCH] Aura tweaks for G533Q https://github.com/seerge/g-helper/issues/1864 --- app/AppConfig.cs | 4 ++-- app/USB/Aura.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index 65192031..8bd990b4 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -384,12 +384,12 @@ public static class AppConfig public static bool IsStrixLimitedRGB() { - return ContainsModel("G614JV") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G533Q"); + return ContainsModel("G614JV") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM"); } public static bool IsNoDirectRGB() { - return ContainsModel("GA503"); + return ContainsModel("GA503") || ContainsModel("G533Q"); } public static bool IsStrixNumpad() diff --git a/app/USB/Aura.cs b/app/USB/Aura.cs index fcb8a1e3..238799fe 100644 --- a/app/USB/Aura.cs +++ b/app/USB/Aura.cs @@ -527,18 +527,18 @@ namespace GHelper.USB return; } - if (isStrix) - { - ApplyDirect(Enumerable.Repeat(color, AURA_ZONES).ToArray(), init); - return; - } - if (AppConfig.IsNoDirectRGB()) { AsusHid.Write(new List { AuraMessage(AuraMode.AuraStatic, color, color, 0xeb, isSingleColor), MESSAGE_SET }); return; } + if (isStrix) + { + ApplyDirect(Enumerable.Repeat(color, AURA_ZONES).ToArray(), init); + return; + } + if (init) { //Init();