Commit d4a6fc9f authored by deuce's avatar deuce
Browse files

Fix inverted logic generating a BOOL from ioctl() result in modem flag

setting.
parent 31fbbe1c
......@@ -352,7 +352,7 @@ static BOOL comSetFlags(COM_HANDLE handle, int flags, BOOL set)
{
int cmd = set ? TIOCMBIS : TIOCMBIC;
return ioctl(handle, cmd, &flags);
return (ioctl(handle, cmd, &flags) == 0);
}
BOOL comRaiseDTR(COM_HANDLE handle)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment