diff --git a/mixly/common/modules/mixly-modules/web-socket/arduino-shell.js b/mixly/common/modules/mixly-modules/web-socket/arduino-shell.js index 950e051b..7e330660 100644 --- a/mixly/common/modules/mixly-modules/web-socket/arduino-shell.js +++ b/mixly/common/modules/mixly-modules/web-socket/arduino-shell.js @@ -75,6 +75,16 @@ goog.loadJs('web', () => { } catch (error) { Debug.error(error); } + + // 过滤掉无关紧要的端口错误(因为已经在本地完成上传了) + if (typeof data === 'string' && ( + data.includes('cannot open serial1') || + data.includes('cannot open device "undefined"') || + data.includes('No such file or directory, cannot open') + )) { + return; + } + statusBarTerminal.addValue(data); }); }