Skip to content

Commit d68bdb2

Browse files
committed
Fixed SlashLighting not turning off on lid-close sometimes #3748
1 parent 431b57c commit d68bdb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/AnimeMatrix/AniMatrixControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void SetLidMode(bool force = false)
151151

152152
if (deviceSlash is not null)
153153
{
154-
deviceSlash.SetLidMode(!matrixLid && AppConfig.Is("slash_sleep"));
154+
deviceSlash.SetLidCloseAnimation(!matrixLid || AppConfig.Is("slash_sleep"));
155155
}
156156

157157
if (matrixLid || force)

app/AnimeMatrix/SlashDevice.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ public void SetBatterySaver(bool status)
207207
Set(CreatePacket([0xD8, 0x01, 0x00, 0x01, status ? (byte)0x80 : (byte)0x00]), $"SlashBatterySaver {status}");
208208
}
209209

210-
public void SetLidMode(bool status)
210+
public void SetLidCloseAnimation(bool status)
211211
{
212-
Set(CreatePacket([0xD8, 0x00, 0x00, 0x02, 0xA5, status ? (byte)0x80 : (byte)0x00]), $"SlashLidCloseAnimation {status}");
212+
Set(CreatePacket([0xD8, 0x00, 0x00, 0x02, 0xA5, status ? (byte)0x00 : (byte)0x80]), $"SlashLidCloseAnimation {status}");
213213
}
214214

215215
public void SetSleepActive(bool status)

0 commit comments

Comments
 (0)