More slash modes

This commit is contained in:
Serge
2024-02-11 21:39:43 +01:00
parent 6e88cd2304
commit ab44dbf2b4
5 changed files with 95 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ namespace GHelper.AnimeMatrix
try
{
if (AppConfig.ContainsModel("GA403"))
if (AppConfig.ContainsModel("GA403") || AppConfig.ContainsModel("GU605"))
deviceSlash = new SlashDevice();
else
deviceMatrix = new AnimeMatrixDevice();
@@ -85,7 +85,7 @@ namespace GHelper.AnimeMatrix
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
{
deviceSlash.Init();
deviceSlash.SetOptions(false);
deviceSlash.SetOptions(false, 0, 0);
}
else
{
@@ -97,6 +97,12 @@ namespace GHelper.AnimeMatrix
});
}
public void SetBatteryAuto()
{
if (deviceSlash is not null) deviceSlash.SetBatterySaver(AppConfig.Is("matrix_auto"));
if (deviceMatrix is not null) SetMatrix();
}
public void SetMatrix(bool wakeUp = false)
{