fix: add missing baudrate and reset params to shell command interpolation

This commit is contained in:
yczpf2019
2026-01-24 19:10:03 +08:00
parent 6c6661c6c0
commit ec4814c208

View File

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