Created
October 21, 2018 10:11
-
-
Save aybarburak/22d1c248c861a9371ef4111dd2154f06 to your computer and use it in GitHub Desktop.
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
await device.controlTransferOut({ | |
requestType: 'vendor', | |
recipient: 'interface', | |
request: 0x01, // vendor-specific request: enable channels | |
value: 0x0013, // 0b00010011 (channels 1, 2 and 5) | |
index: 0x0001 // Interface 1 is the recipient | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment