Make sure DTR asserted on Windows
This commit is contained in:
parent
5225e32aac
commit
89f76f91fd
2 changed files with 7 additions and 1 deletions
|
|
@ -527,6 +527,10 @@ int open_port(const char *name)
|
|||
CloseHandle(port_handle);
|
||||
return 0;
|
||||
}
|
||||
if (!EscapeCommFunction(port_handle, SETDTR)) {
|
||||
CloseHandle(port_handle);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue