summaryrefslogtreecommitdiff
path: root/src/SerialTty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SerialTty.cpp')
-rw-r--r--src/SerialTty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SerialTty.cpp b/src/SerialTty.cpp
index 65e4415..24194e2 100644
--- a/src/SerialTty.cpp
+++ b/src/SerialTty.cpp
@@ -320,10 +320,10 @@ SerialTty::~SerialTty()
#define ENSURE_OR_RETURN_FALSE(e) \
do \
{ \
- if(-1 == (e)) \
+ if((e)<0) \
{ \
/*perror(#e);*/ \
- const char* se=strerror(e); \
+ const char* se=strerror(errno); \
LOG(antpm::LOG_ERR) << se << "\n"; \
return false; \
} \