From 9bcc49059e966b6f0d58034f82159bf21103bb28 Mon Sep 17 00:00:00 2001 From: yczpf2019 Date: Sat, 24 Jan 2026 20:30:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(ampy):=20=E5=90=AF=E7=94=A8=20exitREPL=20?= =?UTF-8?q?=E8=BD=AF=E5=A4=8D=E4=BD=8D=E8=AE=A9=E8=AE=BE=E5=A4=87=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E4=B8=8A=E4=BC=A0=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mixly/common/modules/mixly-modules/web/ampy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mixly/common/modules/mixly-modules/web/ampy.js b/mixly/common/modules/mixly-modules/web/ampy.js index 3a1276e1..f8343e2e 100644 --- a/mixly/common/modules/mixly-modules/web/ampy.js +++ b/mixly/common/modules/mixly-modules/web/ampy.js @@ -228,9 +228,10 @@ goog.loadJs('web', () => { if (!await this.exitRawREPL()) { throw new Error(Msg.Lang['ampy.exitRawREPLFailed']); } - /*if (!await this.exitREPL()) { + // 发送 Ctrl+D 触发软复位,让设备执行上传的 main.py + if (!await this.exitREPL()) { throw new Error(Msg.Lang['ampy.exitREPLFailed']); - }*/ + } await this.#device_.close(); this.#active_ = false; }