fix(core): 设备关闭时复位波特率以防止重新打开时波特率改变所导致的异常问题
This commit is contained in:
@@ -218,6 +218,7 @@ class Serial {
|
||||
|
||||
async close() {
|
||||
this.#isOpened_ = false;
|
||||
this.#baud_ = 0;
|
||||
}
|
||||
|
||||
async toggle() {
|
||||
|
||||
Reference in New Issue
Block a user