fix(ampy): 启用 exitREPL 软复位让设备执行上传的代码

This commit is contained in:
yczpf2019
2026-01-24 20:30:25 +08:00
parent 0c6199d8e4
commit 9bcc49059e

View File

@@ -228,9 +228,10 @@ goog.loadJs('web', () => {
if (!await this.exitRawREPL()) { if (!await this.exitRawREPL()) {
throw new Error(Msg.Lang['ampy.exitRawREPLFailed']); 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']); throw new Error(Msg.Lang['ampy.exitREPLFailed']);
}*/ }
await this.#device_.close(); await this.#device_.close();
this.#active_ = false; this.#active_ = false;
} }