Select USB configuration if it is null (#59)
* remove CNAME for testing with github pages
* select configuration if it is null
* Revert "remove CNAME for testing with github pages"
This was done for testing.
This reverts commit 209c3413d2
.
pull/60/head
parent
a5f656c956
commit
4019ac1601
4
main.js
4
main.js
|
@ -100,6 +100,10 @@ async function launchPayload(payload) {
|
||||||
await device.open();
|
await device.open();
|
||||||
logOutput(`Connected to ${device.manufacturerName} ${device.productName}`);
|
logOutput(`Connected to ${device.manufacturerName} ${device.productName}`);
|
||||||
|
|
||||||
|
if (device.configuration === null) {
|
||||||
|
await device.selectConfiguration(1);
|
||||||
|
}
|
||||||
|
|
||||||
await device.claimInterface(0);
|
await device.claimInterface(0);
|
||||||
|
|
||||||
const deviceID = await device.transferIn(1, 16);
|
const deviceID = await device.transferIn(1, 16);
|
||||||
|
|
Loading…
Reference in New Issue