mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Update win.cc
fix bug where parameter `dtrcontrol` isn't stored to `dtrcontrol_`.
This commit is contained in:
parent
dc27292900
commit
f08466acca
@ -533,6 +533,7 @@ Serial::SerialImpl::setDTR (dtrcontrol_t dtrcontrol)
|
|||||||
if (is_open_ == false) {
|
if (is_open_ == false) {
|
||||||
throw PortNotOpenedException ("Serial::setDTR");
|
throw PortNotOpenedException ("Serial::setDTR");
|
||||||
}
|
}
|
||||||
|
dtrcontrol_ = dtrcontrol;
|
||||||
if (dtrcontrol == dtr_enable) {
|
if (dtrcontrol == dtr_enable) {
|
||||||
EscapeCommFunction (fd_, SETDTR);
|
EscapeCommFunction (fd_, SETDTR);
|
||||||
} else if (dtrcontrol == dtr_disable) {
|
} else if (dtrcontrol == dtr_disable) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user