Update: web usb移除filters

This commit is contained in:
王立帮
2024-12-24 09:42:55 +08:00
parent 9d44a00968
commit 59a7da452d

View File

@@ -40,9 +40,7 @@ class USB extends Serial {
this.requestPort = async function () { this.requestPort = async function () {
const device = await navigator.usb.requestDevice({ const device = await navigator.usb.requestDevice({
filters: [{ filters: []
vendorId: 0xD28
}]
}); });
this.addPort(device); this.addPort(device);
this.refreshPorts(); this.refreshPorts();