BugFix: 100% CPU

This commit is contained in:
tomoaki
2016-12-07 22:45:18 +09:00
parent 4ebd92fc14
commit 64f7bbac1b
4 changed files with 10 additions and 4 deletions

View File

@@ -400,7 +400,7 @@ SerialPort::SerialPort()
_tio.c_iflag = IGNBRK | IGNPAR;
_tio.c_cflag = CS8 | CLOCAL | CRTSCTS;
_tio.c_cc[VINTR] = 0;
_tio.c_cc[VTIME] = 0;
_tio.c_cc[VTIME] = 10; // 1 sec.
_tio.c_cc[VMIN] = 1;
_fd = 0;
}