Ambient mode tweak for 2024 models

This commit is contained in:
Serge
2024-03-07 13:39:34 +01:00
parent a688275ca2
commit 06378162c8
3 changed files with 5 additions and 5 deletions

View File

@@ -431,7 +431,7 @@ public static class AppConfig
public static bool IsNoDirectRGB() public static bool IsNoDirectRGB()
{ {
return ContainsModel("GA503") || ContainsModel("G533Q"); return ContainsModel("GA503") || ContainsModel("G533Q") || IsSlash();
} }
public static bool IsStrixNumpad() public static bool IsStrixNumpad()

View File

@@ -97,16 +97,16 @@ public static class AsusHid
try try
{ {
stream.Write(data); stream.Write(data);
Logger.WriteLine($"{log} {device.ProductID.ToString("X")}: {BitConverter.ToString(data)}"); if (log is not null) Logger.WriteLine($"{log} {device.ProductID.ToString("X")}: {BitConverter.ToString(data)}");
} }
catch (Exception ex) catch (Exception ex)
{ {
Logger.WriteLine($"Error writing {log} {device.ProductID.ToString("X")}: {ex.Message} {BitConverter.ToString(data)} "); if (log is not null) Logger.WriteLine($"Error writing {log} {device.ProductID.ToString("X")}: {ex.Message} {BitConverter.ToString(data)} ");
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
Logger.WriteLine($"Error opening {log} {device.ProductID.ToString("X")}: {ex.Message}"); if (log is not null) Logger.WriteLine($"Error opening {log} {device.ProductID.ToString("X")}: {ex.Message}");
} }
} }

View File

@@ -598,7 +598,7 @@ namespace GHelper.USB
if (AppConfig.IsNoDirectRGB()) if (AppConfig.IsNoDirectRGB())
{ {
AsusHid.Write(new List<byte[]> { AuraMessage(AuraMode.AuraStatic, color, color, 0xeb, isSingleColor), MESSAGE_SET }); AsusHid.Write(new List<byte[]> { AuraMessage(AuraMode.AuraStatic, color, color, 0xeb, isSingleColor), MESSAGE_SET }, null);
return; return;
} }