Skip to content

Commit

Permalink
openCallback on SerialPort open
Browse files Browse the repository at this point in the history
  • Loading branch information
cplepage committed Apr 4, 2024
1 parent 9d0ccf3 commit 3726486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/serverserial.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class ServerSerial extends EventEmitter {
const optionsWithBindingandSerialport = Object.assign({}, serialportOptions, optionsWithBinding);

// create a serial server
modbus._serverPath = new SerialPort(optionsWithBindingandSerialport);
modbus._serverPath = new SerialPort(optionsWithBindingandSerialport, options.openCallback);

// create a serial server with a timeout parser
modbus._server = modbus._serverPath.pipe(new ServerSerialPipeHandler(optionsWithSerialPortTimeoutParser));
Expand Down

0 comments on commit 3726486

Please sign in to comment.