mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-27 19:37:17 +00:00
Fixing bug with databit, stopbit, and parity not being set properly.
This commit is contained in:
parent
5a2b7f16fe
commit
e8b88e668e
1 changed files with 2 additions and 2 deletions
|
|
@ -119,14 +119,14 @@ namespace node {
|
|||
if (args.Length() >= 4 && !args[3]->IsInt32()) {
|
||||
return scope.Close(THROW_BAD_ARGS);
|
||||
} else {
|
||||
Stop_Bits = args[2]->Int32Value();
|
||||
Stop_Bits = args[3]->Int32Value();
|
||||
}
|
||||
|
||||
// Parity Arguments
|
||||
if (args.Length() >= 5 && !args[4]->IsInt32()) {
|
||||
return scope.Close(THROW_BAD_ARGS);
|
||||
} else {
|
||||
Parity = args[2]->Int32Value();
|
||||
Parity = args[4]->Int32Value();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue