Skip to content

Commit

Permalink
[fix] #22 function CSerialPortWinBase::openPort error when set error …
Browse files Browse the repository at this point in the history
…parameter
  • Loading branch information
itas109 committed Apr 8, 2020
1 parent c80d45a commit 55d439d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SerialPortWinBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ bool CSerialPortWinBase::openPort()
{
//Failed to set Comm Mask
bRet = false;
lastError = itas109::/*SerialPortError::*/InvalidParameterError;
}
}
else
Expand All @@ -189,6 +190,8 @@ bool CSerialPortWinBase::openPort()
else
{
//set com configure error
bRet = false;
lastError = itas109::/*SerialPortError::*/InvalidParameterError;
}
}
else
Expand Down Expand Up @@ -219,6 +222,7 @@ bool CSerialPortWinBase::openPort()
else
{
bRet = false;
lastError = itas109::/*SerialPortError::*/NotOpenError;
}

unlock();
Expand Down

0 comments on commit 55d439d

Please sign in to comment.