From 740a10fed8f0feee84497d34ab46a0d95ebb5209 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 26 May 2024 12:41:26 +0200 Subject: [PATCH] Slash Enable flag --- app/AnimeMatrix/SlashDevice.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/AnimeMatrix/SlashDevice.cs b/app/AnimeMatrix/SlashDevice.cs index 9379c4b7..eb0446fe 100644 --- a/app/AnimeMatrix/SlashDevice.cs +++ b/app/AnimeMatrix/SlashDevice.cs @@ -94,10 +94,16 @@ namespace GHelper.AnimeMatrix public void Init() { + SetEnabled(true); Set(Packet(0xD7, 0x00, 0x00, 0x01, 0xAC), "SlashInit"); Set(Packet(0xD2, 0x02, 0x01, 0x08, 0xAB), "SlashInit"); } + public void SetEnabled(bool status = true) + { + Set(Packet(0xD8, 0x02, 0x00, 0x01, status ? (byte)0x00 : (byte)0x80), $"SlashEnable {status}"); + } + public void Save() { Set(Packet(0xD4, 0x00, 0x00, 0x01, 0xAB), "SlashSave");