Skip to content

Commit

Permalink
Bundle slash lighting sleep animation with brightness setting #2381
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Apr 22, 2024
1 parent 231edde commit 4009829
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/AnimeMatrix/AniMatrixControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void SetSlash(bool wakeUp = false)
{
deviceSlash.Init();
deviceSlash.SetOptions(false, 0, 0);
deviceSlash.SetSleepActive(false);
}
else
{
Expand All @@ -98,7 +99,7 @@ public void SetSlash(bool wakeUp = false)
}
deviceSlash.Init();
switch ((SlashMode)running)
{
case SlashMode.Static:
Expand All @@ -110,6 +111,8 @@ public void SetSlash(bool wakeUp = false)
deviceSlash.Save();
break;
}
deviceSlash.SetSleepActive(true);
}
});
}
Expand All @@ -121,7 +124,6 @@ public void SetLidMode(bool force = false)
if (deviceSlash is not null)
{
deviceSlash.SetLidMode(matrixLid);
deviceSlash.SetSleepActive(!matrixLid);
}

if (matrixLid || force)
Expand Down

0 comments on commit 4009829

Please sign in to comment.