Update: web usb移除filters
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user