mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Slash lightning tweaks https://github.com/seerge/g-helper/issues/2381
This commit is contained in:
@@ -61,9 +61,11 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
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}");
|
||||
if (deviceSlash is not null) deviceSlash.SetLidMode(matrixLid);
|
||||
SetDevice(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace GHelper.AnimeMatrix
|
||||
public void Set(Packet packet, string? log = null)
|
||||
{
|
||||
_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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user