Fix: 修复web hid在多个设备同时被添加时只显示第1个设备
This commit is contained in:
@@ -44,7 +44,9 @@ class WebHID extends Serial {
|
|||||||
if (!devices.length) {
|
if (!devices.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.addPort(devices[0]);
|
for (let device of devices) {
|
||||||
|
this.addPort(device);
|
||||||
|
}
|
||||||
this.refreshPorts();
|
this.refreshPorts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user