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 ); }