Skip to content

Commit

Permalink
Fix code typos (duplicate ->cts)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillick committed Sep 28, 2016
1 parent 71a069f commit d3dcac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/serialport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ void EIO_AfterGet(uv_work_t* req) {

v8::Local<v8::Object> results = Nan::New<v8::Object>();
results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));

argv[0] = Nan::Null();
argv[1] = results;
Expand Down
2 changes: 1 addition & 1 deletion src/serialport_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void EIO_Set(uv_work_t* req) {
}

void EIO_Get(uv_work_t* req) {
SetBaton* data = static_cast<SetBaton*>(req->data);
GetBaton* data = static_cast<GetBaton*>(req->data);

DWORD bits = 0;
GetCommModemStatus((HANDLE)data->fd, &bits);
Expand Down

0 comments on commit d3dcac1

Please sign in to comment.