mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
parent
ffc3028289
commit
82884ca519
@ -48,7 +48,8 @@ Serial::SerialImpl::open ()
|
|||||||
throw SerialException ("Serial port already open.");
|
throw SerialException ("Serial port already open.");
|
||||||
}
|
}
|
||||||
|
|
||||||
fd_ = CreateFile(port_.c_str(),
|
LPCWSTR lp_port = port_.c_str();
|
||||||
|
fd_ = CreateFile(lp_port,
|
||||||
GENERIC_READ | GENERIC_WRITE,
|
GENERIC_READ | GENERIC_WRITE,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user