Skip to content

[fork test] verify-review-fix - #2

Closed
Ashraf-Obay wants to merge 3 commits into
masterfrom
verify-review-fix
Closed

Ashraf-Obay wants to merge 3 commits into
masterfrom
verify-review-fix

Conversation

@Ashraf-Obay

Copy link
Copy Markdown
Owner

Fork-internal CI check for PR Sapd#610 review fixes. Not for merging.

Ashraf-Obay and others added 3 commits October 25, 2026 00:26
Battery status for the PULSE 3D wireless headset via its USB dongle
(054c:0d5e). The dongle never answers queries; it sends an 8-byte status
report (ID 0xB0) on the vendor collection (usage page 0xFF01, usage 0x20)
only when something changes:

  byte[3]  battery 0-100 in steps of 10, or 0x80 while charging
  byte[4]  bit 0x08 set while the headset is connected

getBattery() drains the reports queued on the cached connection, keeps
the newest status per handle, and otherwise waits up to the device
timeout for the next report. Nothing is written to the device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Queue a full-length report with another collection's ID in the
newest-report test, so the report-ID check is actually exercised (the
5-byte media-key report was already rejected by the length check).

The usage-page lookup runs on all platforms since Sapd#596; the interface 3
fallback only applies when hidapi doesn't report usages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Ashraf-Obay

Copy link
Copy Markdown
Owner Author

Fork CI check done; fix pushed to Sapd#610.

@Ashraf-Obay
Ashraf-Obay deleted the verify-review-fix branch October 26, 2026 23:11
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.

1 participant