From f794110c2a0ca1427bf75b6ac08cd0324aaf18b5 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 26 May 2024 12:49:48 +0200 Subject: [PATCH] Slash Enable tweaks --- app/AnimeMatrix/AniMatrixControl.cs | 2 ++ app/AnimeMatrix/SlashDevice.cs | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/AnimeMatrix/AniMatrixControl.cs b/app/AnimeMatrix/AniMatrixControl.cs index 7262f2bb..dc444dbc 100644 --- a/app/AnimeMatrix/AniMatrixControl.cs +++ b/app/AnimeMatrix/AniMatrixControl.cs @@ -86,6 +86,7 @@ namespace GHelper.AnimeMatrix if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online) || (lid && lidClose)) { + deviceSlash.SetEnabled(false); deviceSlash.Init(); deviceSlash.SetOptions(false, 0, 0); deviceSlash.SetSleepActive(false); @@ -98,6 +99,7 @@ namespace GHelper.AnimeMatrix _wakeUp = false; } + deviceSlash.SetEnabled(true); deviceSlash.Init(); switch ((SlashMode)running) diff --git a/app/AnimeMatrix/SlashDevice.cs b/app/AnimeMatrix/SlashDevice.cs index eb0446fe..5e86f061 100644 --- a/app/AnimeMatrix/SlashDevice.cs +++ b/app/AnimeMatrix/SlashDevice.cs @@ -89,12 +89,10 @@ namespace GHelper.AnimeMatrix Set(Packet(Encoding.ASCII.GetBytes("ASUS Tech.Inc.")), "SlashWakeUp"); Set(Packet(0xC2), "SlashWakeUp"); Set(Packet(0xD1, 0x01, 0x00, 0x01), "SlashWakeUp"); - Set(Packet(0xD2, 0x03, 0x00, 0x0C), "SlashWakeUpMode"); } public void Init() { - SetEnabled(true); Set(Packet(0xD7, 0x00, 0x00, 0x01, 0xAC), "SlashInit"); Set(Packet(0xD2, 0x02, 0x01, 0x08, 0xAB), "SlashInit"); }