From ec4814c2082b3d481986446b43e3e869d31be546 Mon Sep 17 00:00:00 2001 From: yczpf2019 Date: Sat, 24 Jan 2026 19:10:03 +0800 Subject: [PATCH] fix: add missing baudrate and reset params to shell command interpolation --- src/common/shell-micropython.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/shell-micropython.js b/src/common/shell-micropython.js index 214ef0c5..5ad6c322 100755 --- a/src/common/shell-micropython.js +++ b/src/common/shell-micropython.js @@ -13,7 +13,8 @@ export default class ShellMicroPython extends Shell { const info = { indexPath: path.resolve(CLIENT_PATH, config.boardDirPath), esptool: `"${PYTHON.path.cli}" "${MICROPYTHON.path.esptool}"`, - com: config.port + com: config.port, + baudrate: config.baudRates }; // 兼容性处理:移除模板中可能存在的冗余引号 let cmdTemplate = config.command || ""; @@ -27,7 +28,8 @@ export default class ShellMicroPython extends Shell { const info = { indexPath: path.resolve(CLIENT_PATH, config.boardDirPath), ampy: `"${PYTHON.path.cli}" "${MICROPYTHON.path.ampy}"`, - com: config.port + com: config.port, + reset: config.reset || "" }; // 兼容性处理:移除模板中可能存在的冗余引号 let cmdTemplate = config.command || "";