Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Resolve communication error by changing wValue from 0x3000 to 0x0300 #4

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/steam_deck_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def set_report(data)
@handle.control_transfer(
bmRequestType: 0x21,
bRequest: SET_REPORT,
wValue: 0x3000,
wValue: 0x0300,
wIndex: 0x0002,
dataOut: data,
)
Expand All @@ -212,7 +212,7 @@ def get_report(length)
@handle.control_transfer(
bmRequestType: 0xa1,
bRequest: GET_REPORT,
wValue: 0x3000,
wValue: 0x0300,
wIndex: 0x0002,
dataIn: length,
)
Expand Down