From d3dcac14faf9e77a07b8ea23f8408b5748532da0 Mon Sep 17 00:00:00 2001 From: jgillick Date: Wed, 28 Sep 2016 02:19:31 -0700 Subject: [PATCH] Fix code typos (duplicate `->cts`) --- src/serialport.cpp | 4 ++-- src/serialport_win.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/serialport.cpp b/src/serialport.cpp index 94a512c72..dafe61732 100644 --- a/src/serialport.cpp +++ b/src/serialport.cpp @@ -629,8 +629,8 @@ void EIO_AfterGet(uv_work_t* req) { v8::Local results = Nan::New(); results->Set(Nan::New("cts").ToLocalChecked(), Nan::New(data->cts)); - results->Set(Nan::New("dsr").ToLocalChecked(), Nan::New(data->cts)); - results->Set(Nan::New("dcd").ToLocalChecked(), Nan::New(data->cts)); + results->Set(Nan::New("dsr").ToLocalChecked(), Nan::New(data->dsr)); + results->Set(Nan::New("dcd").ToLocalChecked(), Nan::New(data->dcd)); argv[0] = Nan::Null(); argv[1] = results; diff --git a/src/serialport_win.cpp b/src/serialport_win.cpp index b18c5fd12..d6c24e3a0 100644 --- a/src/serialport_win.cpp +++ b/src/serialport_win.cpp @@ -247,7 +247,7 @@ void EIO_Set(uv_work_t* req) { } void EIO_Get(uv_work_t* req) { - SetBaton* data = static_cast(req->data); + GetBaton* data = static_cast(req->data); DWORD bits = 0; GetCommModemStatus((HANDLE)data->fd, &bits);