From 2a5c2e02acbd52481c323ab5779b945115eeb3f8 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 21 May 2023 21:23:55 +0200 Subject: [PATCH] Anime matrix fix --- app/AnimeMatrix/AniMatrix.cs | 1 + app/AsusUSB.cs | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/AnimeMatrix/AniMatrix.cs b/app/AnimeMatrix/AniMatrix.cs index 3a2a498c..95a8a86c 100644 --- a/app/AnimeMatrix/AniMatrix.cs +++ b/app/AnimeMatrix/AniMatrix.cs @@ -26,6 +26,7 @@ namespace GHelper.AnimeMatrix try { mat = new AnimeMatrixDevice(); + mat.WakeUp(); matrixTimer = new System.Timers.Timer(100); matrixTimer.Elapsed += MatrixTimer_Elapsed; } diff --git a/app/AsusUSB.cs b/app/AsusUSB.cs index 0e8c3298..a36fa7a0 100644 --- a/app/AsusUSB.cs +++ b/app/AsusUSB.cs @@ -271,16 +271,7 @@ namespace GHelper var devices = GetHidDevices(deviceIds); foreach (HidDevice device in devices) { - - device.OpenDevice(); - - device.WriteFeatureData(LED_INIT1); - device.WriteFeatureData(LED_INIT2); - device.WriteFeatureData(LED_INIT3); - device.WriteFeatureData(LED_INIT4); - device.WriteFeatureData(LED_INIT5); - device.WriteFeatureData(msg); Logger.WriteLine("USB-KB " + device.Capabilities.FeatureReportByteLength + ":" + BitConverter.ToString(msg)); device.CloseDevice();