From 4608f70c4d79f75d8a8571b2b75772178fade2ee Mon Sep 17 00:00:00 2001 From: Jaro Date: Wed, 1 Sep 2021 18:03:47 +0200 Subject: [PATCH] 158 --- TimeoutSerial.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TimeoutSerial.cpp b/TimeoutSerial.cpp index 77c7b68..1bf3a11 100755 --- a/TimeoutSerial.cpp +++ b/TimeoutSerial.cpp @@ -242,7 +242,6 @@ void TimeoutSerial::readCompleted(const boost::system::error_code& error, return; } - BOOST_LOG_TRIVIAL(debug) << "Error =" << error.value() ; //In case a asynchronous operation is cancelled due to a timeout, //each OS seems to have its way to react. #ifdef _WIN32 @@ -256,7 +255,7 @@ void TimeoutSerial::readCompleted(const boost::system::error_code& error, return; } #else //Linux - if(error.value()==125) return; //Linux outputs error 125 + if(error.value()==125 || error.value() == 158) return; //Linux outputs error 125 #endif result=resultError;