diff --git a/main.js b/main.js index d31478e..5dfb69b 100644 --- a/main.js +++ b/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);