Fix compile error in Windows port from recent code refactoring.

This commit is contained in:
Stephen Anthony 2019-12-22 10:14:39 -03:30
parent 67273e9df8
commit 19c05e878c
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ bool SerialPortWINDOWS::openPort(const string& device)
dcb.DCBlength = sizeof(dcb);
if(!BuildCommDCB("19200,n,8,1", &dcb))
{
closePort();
CloseHandle(myHandle);
myHandle = 0;
return false;
}