fix(core): 修复一些情况下串口波特率设置异常
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user