Skip to content

fix(core): use output report 16 when a device declares several - #15

Merged
moicd merged 1 commit into
moicd:mainfrom
VTGare:fix/ld-report-id
Oct 19, 2026
Merged

moicd merged 1 commit into
moicd:mainfrom
VTGare:fix/ld-report-id

Conversation

@VTGare

@VTGare VTGare commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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_id returns 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 sizes output_report_len from 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

  • Unit tests for pick_report_id and for an LD-like descriptor with output reports 2, 3, 4 and 16.
  • cargo fmt --all --check, cargo test and cargo clippy --all-targets -- -D warnings on Linux; clippy for x86_64-pc-windows-msvc as well.
  • On an LD240/LD360 under Windows 11, the display works with a release build from this branch.

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
@moicd

moicd commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Merged. Thank you, @VTGare, for the detailed report in #14, the test with the raw reports and the fix for both platforms. It will ship in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LD240/LD360: display stays blank, output report ID 2 is used instead of 16

2 participants