fix: 修复串口销毁时dispose方法执行异常
This commit is contained in:
@@ -195,7 +195,7 @@ export default class Serial extends EventsBase {
|
|||||||
|
|
||||||
async dispose() {
|
async dispose() {
|
||||||
await this.close();
|
await this.close();
|
||||||
this.disposeEvent();
|
this.reset();
|
||||||
this.#serialport_ = null;
|
this.#serialport_ = null;
|
||||||
this.#parserBytes_ = null;
|
this.#parserBytes_ = null;
|
||||||
this.#parserLine_ = null;
|
this.#parserLine_ = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user