fix(core): 修复一些情况下串口波特率设置异常

This commit is contained in:
王立帮
2025-10-20 22:03:08 +08:00
parent aaf5ffedec
commit 2be8cb8b4c
6 changed files with 10 additions and 6 deletions

View File

@@ -234,7 +234,7 @@ class USBMini extends Serial {
}
async setBaudRate(baud) {
if (!this.isOpened() || this.getBaudRate() === baud) {
if (!this.isOpened() || this.getRawBaudRate() === baud) {
return;
}
await super.setBaudRate(baud);