Skip to content

Commit

Permalink
Fix error with serialport
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Mar 21, 2022
1 parent e4c77a7 commit 4bc2dc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ There are some programs in folder *test' to test the TCP communication:
### **WORK IN PROGRESS**
-->
## Changelog
### 4.0.1 (2022-03-20)
### **WORK IN PROGRESS**
* (bluefox) Updated serial port package
* (bluefox) Minimal node.js version is 12

Expand Down
3 changes: 2 additions & 1 deletion lib/jsmodbus/transports/modbus-client-serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = stampit()

this.log.debug(`connect to serial ${serial.portName} with ${serial.baudRate}`);

serialport = new SerialPort(serial.portName, {
serialport = new SerialPort({
path: serial.portName,
baudRate: serial.baudRate,
parity: serial.parity,
dataBits: serial.dataBits,
Expand Down

0 comments on commit 4bc2dc8

Please sign in to comment.