This commit is contained in:
2021-09-01 18:03:47 +02:00
parent a96ef776f0
commit 4608f70c4d

View File

@@ -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;