From 91460f1d4e99cb7ffa6d30e4fdab16b52e12d71c Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Wed, 10 Dec 2014 21:41:52 -0500 Subject: [PATCH] Bug fix possibly for windows. --- src/serialport_win.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/serialport_win.cpp b/src/serialport_win.cpp index 08ef264..6f40cc5 100644 --- a/src/serialport_win.cpp +++ b/src/serialport_win.cpp @@ -164,30 +164,30 @@ public: }; void EIO_Set(uv_work_t* req) { - SetBaton* data = static_cast(req->data); + // SetBaton* data = static_cast(req->data); - int bits; - ioctl( data->fd, TIOCMGET, &bits ); + // int bits; + // ioctl( data->fd, TIOCMGET, &bits ); - bits &= ~(TIOCM_RTS | TIOCM_CTS | TIOCM_DTR | TIOCM_DSR); + // bits &= ~(TIOCM_RTS | TIOCM_CTS | TIOCM_DTR | TIOCM_DSR); - if (data->rts) { - bits |= TIOCM_RTS; - } + // if (data->rts) { + // bits |= TIOCM_RTS; + // } - if (data->cts) { - bits |= TIOCM_CTS; - } + // if (data->cts) { + // bits |= TIOCM_CTS; + // } - if (data->dtr) { - bits |= TIOCM_DTR; - } + // if (data->dtr) { + // bits |= TIOCM_DTR; + // } - if (data->dsr) { - bits |= TIOCM_DSR; - } + // if (data->dsr) { + // bits |= TIOCM_DSR; + // } - data->result = ioctl( data->fd, TIOCMSET, &bits ); + // data->result = ioctl( data->fd, TIOCMSET, &bits ); }