From 708bdc6bf0d9547391ab7184de21a0449da48349 Mon Sep 17 00:00:00 2001 From: yczpf2019 Date: Sat, 24 Jan 2026 21:47:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(arduino-shell):=20=E5=9C=A8=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E8=BF=87=E6=BB=A4=E6=8E=89=20serial1/undefined=20?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/mixly-modules/web-socket/arduino-shell.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); }); }