We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this._port.destroy function is received an Error instance, so in this case callback never to be called
The text was updated successfully, but these errors were encountered:
Hi, thank you for the issue.
Q. does the callback get called ?
callback
Can you investigate the reason for this issue, and suggest a fix ?
Ref: https://github.com/yaacov/node-modbus-serial/blob/master/index.js#L684
Sorry, something went wrong.
Hi yaacov, A: callback does not get called. Because SerialPortStream extend stream.Duplex Ref: https://github.com/serialport/node-serialport/blob/main/packages/stream/lib/index.ts#L70 https://nodejs.org/api/stream.html#class-streamduplex
So the arg push into destroy function should be array of Error. I suggest that we should move callback to next line below destroy
nice, can you make a pull request ?
Sure, I created a PR, please help me to review and merge it #542
No branches or pull requests
this._port.destroy function is received an Error instance, so in this case callback never to be called
The text was updated successfully, but these errors were encountered: