处理动画

This commit is contained in:
2026-02-09 04:07:32 +08:00
parent 85ed0946c8
commit 9822cf901d
5 changed files with 383 additions and 56 deletions

View File

@@ -168,9 +168,9 @@ func ScanDevices() map[string]*RazerDevice {
}
// 从缓存恢复状态
if s, found := deviceStateCache[key]; found {
grouped[key].CurrentEffect = s.Effect
grouped[key].CurrentColor = s.Color
if s, found := DeviceStateCache[key]; found {
grouped[key].CurrentEffect = s.GetEffect()
//grouped[key].CurrentColor = s.Color
}
}