mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2025-01-18 18:41:28 +00:00
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 209c3413d28da8ce771abdc6bcbf7ace93549ffd.
This commit is contained in:
parent
a5f656c956
commit
4019ac1601
4
main.js
4
main.js
@ -100,6 +100,10 @@ async function launchPayload(payload) {
|
||||
await device.open();
|
||||
logOutput(`Connected to ${device.manufacturerName} ${device.productName}`);
|
||||
|
||||
if (device.configuration === null) {
|
||||
await device.selectConfiguration(1);
|
||||
}
|
||||
|
||||
await device.claimInterface(0);
|
||||
|
||||
const deviceID = await device.transferIn(1, 16);
|
||||
|
Loading…
x
Reference in New Issue
Block a user