diff --git a/src/common/serial.js b/src/common/serial.js index 2cf1e7d..7656e69 100644 --- a/src/common/serial.js +++ b/src/common/serial.js @@ -195,7 +195,7 @@ export default class Serial extends EventsBase { async dispose() { await this.close(); - this.disposeEvent(); + this.reset(); this.#serialport_ = null; this.#parserBytes_ = null; this.#parserLine_ = null;