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;