debug print
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,
|
||||
const size_t bytesTransferred)
|
||||
{
|
||||
if(!error)
|
||||
if(!error || error.val)
|
||||
{
|
||||
result=resultSuccess;
|
||||
this->bytesTransferred=bytesTransferred;
|
||||
|
||||
@@ -270,6 +270,8 @@ Ymodem::Code Ymodem::receivePacket()
|
||||
{
|
||||
uint32_t len = read(&(rxBuffer[1]), YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - 1);
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug) << "Len = " << len;
|
||||
|
||||
if(len < (YMODEM_PACKET_SIZE + YMODEM_PACKET_OVERHEAD - 1))
|
||||
{
|
||||
rxLength = len + 1;
|
||||
|
||||
Reference in New Issue
Block a user