From 40098293caedfdda051a7c1637b2cea25b016a61 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:29:39 +0200 Subject: [PATCH] Bundle slash lighting sleep animation with brightness setting https://github.com/seerge/g-helper/issues/2381 --- app/AnimeMatrix/AniMatrixControl.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/AnimeMatrix/AniMatrixControl.cs b/app/AnimeMatrix/AniMatrixControl.cs index 8d57e417..7c826411 100644 --- a/app/AnimeMatrix/AniMatrixControl.cs +++ b/app/AnimeMatrix/AniMatrixControl.cs @@ -88,6 +88,7 @@ namespace GHelper.AnimeMatrix { deviceSlash.Init(); deviceSlash.SetOptions(false, 0, 0); + deviceSlash.SetSleepActive(false); } else { @@ -98,7 +99,7 @@ namespace GHelper.AnimeMatrix } deviceSlash.Init(); - + switch ((SlashMode)running) { case SlashMode.Static: @@ -110,6 +111,8 @@ namespace GHelper.AnimeMatrix deviceSlash.Save(); break; } + + deviceSlash.SetSleepActive(true); } }); } @@ -121,7 +124,6 @@ namespace GHelper.AnimeMatrix if (deviceSlash is not null) { deviceSlash.SetLidMode(matrixLid); - deviceSlash.SetSleepActive(!matrixLid); } if (matrixLid || force)