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