diff --git a/.gitignore b/.gitignore index e6dda02..ed377b4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ lib/ Ymodem*/ build/* *.log -*.jpg \ No newline at end of file +*.jpg +log.* \ No newline at end of file diff --git a/YmodemFileReceive.cpp b/YmodemFileReceive.cpp index e1f5408..dd726d0 100644 --- a/YmodemFileReceive.cpp +++ b/YmodemFileReceive.cpp @@ -93,6 +93,8 @@ void YmodemFileReceive::readTimeOut(const boost::system::error_code& e) if((status == StatusEstablish) || (status == StatusTransmit)) { + BOOST_LOG_TRIVIAL(debug) << "Set read timer"; + readTimer.expires_from_now(boost::posix_time::millisec(READ_TIME_OUT)); readTimer.async_wait(boost::bind(&YmodemFileReceive::readTimeOut,this,_1)); }