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; }