fix timeout
This commit is contained in:
@@ -235,7 +235,7 @@ void TimeoutSerial::timeoutExpired(const boost::system::error_code& error)
|
|||||||
void TimeoutSerial::readCompleted(const boost::system::error_code& error,
|
void TimeoutSerial::readCompleted(const boost::system::error_code& error,
|
||||||
const size_t bytesTransferred)
|
const size_t bytesTransferred)
|
||||||
{
|
{
|
||||||
if(!error || error.val)
|
if(!error || error.value() == 158)
|
||||||
{
|
{
|
||||||
result=resultSuccess;
|
result=resultSuccess;
|
||||||
this->bytesTransferred=bytesTransferred;
|
this->bytesTransferred=bytesTransferred;
|
||||||
|
|||||||
Reference in New Issue
Block a user