Slash Enable tweaks

This commit is contained in:
Serge
2024-05-26 12:49:48 +02:00
parent 740a10fed8
commit f794110c2a
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -89,12 +89,10 @@ namespace GHelper.AnimeMatrix
Set(Packet<SlashPacket>(Encoding.ASCII.GetBytes("ASUS Tech.Inc.")), "SlashWakeUp");
Set(Packet<SlashPacket>(0xC2), "SlashWakeUp");
Set(Packet<SlashPacket>(0xD1, 0x01, 0x00, 0x01), "SlashWakeUp");
Set(Packet<SlashPacket>(0xD2, 0x03, 0x00, 0x0C), "SlashWakeUpMode");
}
public void Init()
{
SetEnabled(true);
Set(Packet<SlashPacket>(0xD7, 0x00, 0x00, 0x01, 0xAC), "SlashInit");
Set(Packet<SlashPacket>(0xD2, 0x02, 0x01, 0x08, 0xAB), "SlashInit");
}