mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 17:03:42 +00:00
feat: debounce connection suspension
This commit is contained in:
@@ -21,6 +21,13 @@
|
||||
powerDialog = false
|
||||
}
|
||||
|
||||
async function updateFirmware() {
|
||||
const {usbVendorId: vendorId, usbProductId: productId} = $serialPort!.portInfo
|
||||
$serialPort!.bootloader()
|
||||
await new Promise(resolve => setTimeout(resolve, 1000))
|
||||
console.log(await navigator.usb.requestDevice({filters: [{vendorId, productId}]}))
|
||||
}
|
||||
|
||||
let rebootInfo = false
|
||||
let terminal = false
|
||||
let powerDialog = false
|
||||
@@ -44,6 +51,7 @@
|
||||
<br />
|
||||
Version {$serialPort.version}
|
||||
</p>
|
||||
<!--<button on:click={updateFirmware}>Update</button>-->
|
||||
{/if}
|
||||
|
||||
{#if browser}
|
||||
|
||||
Reference in New Issue
Block a user