Make sure DTR asserted on Windows

This commit is contained in:
PaulStoffregen 2016-04-01 01:08:40 -07:00
commit 89f76f91fd
2 changed files with 7 additions and 1 deletions

View file

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