Repository navigation
fix(core): use output report 16 when a device declares several - #15
Merged
Merged
Conversation
The LD series (3633:000A) declares output reports 2, 3, 4 and 16. Only report 16 drives the display, but CoolerCast took the first one it found, so the display stayed dark. Collect every output report ID (value and button caps on Windows, the report descriptor on Linux) and prefer 16, the display report of the documented DeepCool protocols. Devices that do not declare 16 keep their first output report. On Linux the report length comes from the chosen report. Fixes moicd#14
Owner
This was referenced Oct 19, 2026
Merged
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.
Resolves #14.
The LD240/LD360 (
3633:000A) declares output reports 2, 3, 4 and 16. CoolerCast used the first one (2), so the display stayed dark. The LD protocol uses report 16.Changes
hid/mod.rs:pick_report_idreturns 16 when the device declares it among its output reports, otherwise the first one. Both platforms use it.hid/windows.rs: collect the report IDs of every output value cap and button cap, not only the first value cap.hid/linux.rs: the descriptor parser had the same first-report logic. It now records each output report and sizesoutput_report_lenfrom the chosen one.docs/: note the LD output reports and the choice rule, and cite the deepcool-digital-linux device list, whose D0 rows give report ID 16.Devices that don't declare report 16, like the DIGITAL SE variants with no report IDs, behave as before.
Testing
pick_report_idand for an LD-like descriptor with output reports 2, 3, 4 and 16.cargo fmt --all --check,cargo testandcargo clippy --all-targets -- -D warningson Linux; clippy forx86_64-pc-windows-msvcas well.