Bundle slash lighting sleep animation with brightness setting https://github.com/seerge/g-helper/issues/2381

This commit is contained in:
Serge
2024-04-22 14:29:39 +02:00
parent 231edde166
commit 40098293ca

View File

@@ -88,6 +88,7 @@ namespace GHelper.AnimeMatrix
{ {
deviceSlash.Init(); deviceSlash.Init();
deviceSlash.SetOptions(false, 0, 0); deviceSlash.SetOptions(false, 0, 0);
deviceSlash.SetSleepActive(false);
} }
else else
{ {
@@ -98,7 +99,7 @@ namespace GHelper.AnimeMatrix
} }
deviceSlash.Init(); deviceSlash.Init();
switch ((SlashMode)running) switch ((SlashMode)running)
{ {
case SlashMode.Static: case SlashMode.Static:
@@ -110,6 +111,8 @@ namespace GHelper.AnimeMatrix
deviceSlash.Save(); deviceSlash.Save();
break; break;
} }
deviceSlash.SetSleepActive(true);
} }
}); });
} }
@@ -121,7 +124,6 @@ namespace GHelper.AnimeMatrix
if (deviceSlash is not null) if (deviceSlash is not null)
{ {
deviceSlash.SetLidMode(matrixLid); deviceSlash.SetLidMode(matrixLid);
deviceSlash.SetSleepActive(!matrixLid);
} }
if (matrixLid || force) if (matrixLid || force)