Fix: 修复electron下arduino在上传后获取代码区串口波特率出错
This commit is contained in:
@@ -258,6 +258,13 @@ class ElectronSerial extends Serial {
|
||||
super.onChar(char);
|
||||
}
|
||||
}
|
||||
|
||||
async dispose() {
|
||||
await super.dispose();
|
||||
this.#parserBytes_ = null;
|
||||
this.#parserLine_ = null;
|
||||
this.#serialport_ = null;
|
||||
}
|
||||
}
|
||||
|
||||
Electron.Serial = ElectronSerial;
|
||||
|
||||
Reference in New Issue
Block a user