fix(ampy): 启用 exitREPL 软复位让设备执行上传的代码
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user