Add support for Lian Li GA II LCD AIO cooler#795
Merged
Conversation
Contributor
Author
jonasmalacofilho
left a comment
Member
There was a problem hiding this comment.
Hey, thanks for the PR, and sorry for the late feedback. I've been swamped...
I left some comments, please take a look.
Comment on lines
+148
to
+151
| if channel == "pump": | ||
| self._set_pump_lighting(mode, colors, speed, direction, **kwargs) | ||
| elif channel == "fan": | ||
| self._set_fan_lighting(mode, colors, speed, direction, **kwargs) |
Member
There was a problem hiding this comment.
There's too much duplication between the two functions. As a result of fixing that, this should likely be refactored too.
Contributor
Author
There was a problem hiding this comment.
I did refactor color writing to a static function to reduce duplication. Apart from that I'd say these two functions should not be unified, as they have different mode and speed options and different byte structure as well.
Contributor
Author
|
Hi, thank you for reviewing the PR, I made changes accordingly. Let me know if there is anything else I can improve. |
Co-authored-by: Jonas Malaco <jonas@protocubo.io>
e50555c to
8bcfc97
Compare
Member
|
Nothing of concern comes to mind, merging. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for Lian Li GA II LCD, and possibly Lian Li GA II Trinity AIO coolers.
This device is controlled by host application (L-Connect on Windows) by USB HID communication. The driver was implemented by inspecting this communication with
USBPcap.Tested features on Linux:
Not tested:
Not implemented:
Checklist:
docs/*guide.mddevice guides, with ["new/changed in" notes]liquidctl.8Linux/Unix/Mac OS man pagedocs/developer/protocolNew CLI flag?
extra/completions/New device?
extra/linux/71-liquidctl.rules(instructions in the file header)gitMRLVNew driver?
docs/developer/protocol/