From e88964a777d1f1d905b4debc40c9568e0856ed30 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 28 Feb 2019 07:56:00 +0000 Subject: [PATCH] Simplify the tty test. --- SerialController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SerialController.cpp b/SerialController.cpp index 0a31ccf..3171157 100644 --- a/SerialController.cpp +++ b/SerialController.cpp @@ -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());