fix: add missing baudrate and reset params to shell command interpolation
This commit is contained in:
@@ -13,7 +13,8 @@ export default class ShellMicroPython extends Shell {
|
|||||||
const info = {
|
const info = {
|
||||||
indexPath: path.resolve(CLIENT_PATH, config.boardDirPath),
|
indexPath: path.resolve(CLIENT_PATH, config.boardDirPath),
|
||||||
esptool: `"${PYTHON.path.cli}" "${MICROPYTHON.path.esptool}"`,
|
esptool: `"${PYTHON.path.cli}" "${MICROPYTHON.path.esptool}"`,
|
||||||
com: config.port
|
com: config.port,
|
||||||
|
baudrate: config.baudRates
|
||||||
};
|
};
|
||||||
// 兼容性处理:移除模板中可能存在的冗余引号
|
// 兼容性处理:移除模板中可能存在的冗余引号
|
||||||
let cmdTemplate = config.command || "";
|
let cmdTemplate = config.command || "";
|
||||||
@@ -27,7 +28,8 @@ export default class ShellMicroPython extends Shell {
|
|||||||
const info = {
|
const info = {
|
||||||
indexPath: path.resolve(CLIENT_PATH, config.boardDirPath),
|
indexPath: path.resolve(CLIENT_PATH, config.boardDirPath),
|
||||||
ampy: `"${PYTHON.path.cli}" "${MICROPYTHON.path.ampy}"`,
|
ampy: `"${PYTHON.path.cli}" "${MICROPYTHON.path.ampy}"`,
|
||||||
com: config.port
|
com: config.port,
|
||||||
|
reset: config.reset || ""
|
||||||
};
|
};
|
||||||
// 兼容性处理:移除模板中可能存在的冗余引号
|
// 兼容性处理:移除模板中可能存在的冗余引号
|
||||||
let cmdTemplate = config.command || "";
|
let cmdTemplate = config.command || "";
|
||||||
|
|||||||
Reference in New Issue
Block a user