Fixed Slash lighting behavior for lid close https://github.com/seerge/g-helper/issues/3054

This commit is contained in:
Serge
2024-09-03 20:23:46 +02:00
parent 0d2fefb8c4
commit 6b97bc1eaf

View File

@@ -111,6 +111,8 @@ namespace GHelper.AnimeMatrix
deviceSlash.SetEnabled(true); deviceSlash.SetEnabled(true);
deviceSlash.Init(); deviceSlash.Init();
deviceSlash.SetLidMode(false);
switch ((SlashMode)running) switch ((SlashMode)running)
{ {
case SlashMode.Static: case SlashMode.Static:
@@ -148,11 +150,6 @@ namespace GHelper.AnimeMatrix
{ {
bool matrixLid = AppConfig.Is("matrix_lid"); bool matrixLid = AppConfig.Is("matrix_lid");
if (deviceSlash is not null)
{
deviceSlash.SetLidMode(true);
}
if (matrixLid || force) if (matrixLid || force)
{ {
Logger.WriteLine($"Matrix LidClosed: {lidClose}"); Logger.WriteLine($"Matrix LidClosed: {lidClose}");