fix: init local device handlers even when connected to Socket Server

This commit is contained in:
yczpf2019
2026-01-24 18:37:54 +08:00
parent 8b59808c17
commit c7d57d39a1

View File

@@ -150,9 +150,9 @@ class WebSerial extends Serial {
this.addEventsListener = function () { }
this.init = function () {
if (Env.hasSocketServer) {
return;
}
// if (Env.hasSocketServer) {
// return;
// }
if (platform === 'win32' && fullPlatform !== 'win10') {
if (BOARD?.web?.devices?.hid) {
this.devicesRegistry.register('hid', HID);