This commit is contained in:
Serge
2024-04-05 13:53:25 +02:00
parent fff3c2924e
commit 558f8b2cc0
2 changed files with 4 additions and 2 deletions

View File

@@ -61,9 +61,11 @@ namespace GHelper.AnimeMatrix
public void SetLidMode(bool force = false) public void SetLidMode(bool force = false)
{ {
if (AppConfig.Is("matrix_lid") || force) bool matrixLid = AppConfig.Is("matrix_lid");
if (matrixLid || force)
{ {
Logger.WriteLine($"Matrix LidClosed: {lidClose}"); Logger.WriteLine($"Matrix LidClosed: {lidClose}");
if (deviceSlash is not null) deviceSlash.SetLidMode(matrixLid);
SetDevice(true); SetDevice(true);
} }
} }

View File

@@ -135,7 +135,7 @@ namespace GHelper.AnimeMatrix
public void Set(Packet packet, string? log = null) public void Set(Packet packet, string? log = null)
{ {
_usbProvider?.Set(packet.Data); _usbProvider?.Set(packet.Data);
if (log is not null) Logger.WriteLine("Slash:" + BitConverter.ToString(packet.Data)); if (log is not null) Logger.WriteLine($"{log}:" + BitConverter.ToString(packet.Data).Substring(0,48));
} }