Simplify the tty test.

This commit is contained in:
Jonathan Naylor 2019-02-28 07:56:00 +00:00
parent 9350fa8483
commit e88964a777

View file

@ -251,7 +251,7 @@ bool CSerialController::open()
return false;
}
if (::isatty(m_fd) == 1) {
if (::isatty(m_fd)) {
termios termios;
if (::tcgetattr(m_fd, &termios) < 0) {
LogError("Cannot get the attributes for %s", m_device.c_str());