mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
emit error on serialPort error
This commit is contained in:
parent
f6fea65063
commit
f0342def33
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ class NodeJSSerialConnection extends SerialConnection {
|
|||
});
|
||||
|
||||
this.serialPort.on("error", function(err) {
|
||||
console.log("SerialPort Error: ", err.message)
|
||||
console.error("SerialPort Error: ", err.message);
|
||||
this.emit("error", err);
|
||||
});
|
||||
|
||||
this.serialPort.on("data", async (data) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue