-
-
Notifications
You must be signed in to change notification settings - Fork 997
New issue
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
Baud rate is parsed as NaN (???) #1023
Comments
Obviously this is caused by buggy command line parser. I got rid of this bug very simply:
Now it works perfectly. Please have a look what's the problem with commander as it parses any number as NaN (also for the other numerical options). |
@radio-miskovice oddly enough this works fine if I use Turns out commander already already knows. |
SerialPort version: 4.0.6
NodeJS Version: 6.9.1 x64 Windows
Operating System and Hardware Platform: Windows 10
Are you using an alternative NodeJS runtime? (eg Electron): don't think so
Summary of Problem
node seriaport-terminal -p COM4 -b 9600
returns "Error 87":
Error Error: Open (SetCommState): Unknown error code 87
at Error (native)
(same for any other port or baudrate)
Debugging reveals, that args.baud has "value" NaN
Steps and Code to Reproduce the Issue
The text was updated successfully, but these errors were encountered: