Fix: 修复web hid在多个设备同时被添加时只显示第1个设备

This commit is contained in:
王立帮
2024-12-31 23:14:54 +08:00
parent 8ed5046ebf
commit 34b588a1ee

View File

@@ -44,7 +44,9 @@ class WebHID extends Serial {
if (!devices.length) {
return;
}
this.addPort(devices[0]);
for (let device of devices) {
this.addPort(device);
}
this.refreshPorts();
}