debug
This commit is contained in:
@@ -176,6 +176,7 @@ void Ymodem::receive()
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
BOOST_LOG_TRIVIAL(debug) << "receiveStageFinished";
|
||||||
receiveStageFinished();
|
receiveStageFinished();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -375,6 +376,7 @@ void Ymodem::receiveStageNone()
|
|||||||
*/
|
*/
|
||||||
void Ymodem::receiveStageEstablishing()
|
void Ymodem::receiveStageEstablishing()
|
||||||
{
|
{
|
||||||
|
|
||||||
switch(receivePacket())
|
switch(receivePacket())
|
||||||
{
|
{
|
||||||
case CodeSoh:
|
case CodeSoh:
|
||||||
@@ -462,6 +464,8 @@ void Ymodem::receiveStageEstablishing()
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
BOOST_LOG_TRIVIAL(debug) << "receiveStageEstabilishingDefaul timeCount = " << timeCount;
|
||||||
|
|
||||||
timeCount++;
|
timeCount++;
|
||||||
|
|
||||||
if((timeCount / (timeDivide + 1)) > timeMax)
|
if((timeCount / (timeDivide + 1)) > timeMax)
|
||||||
|
|||||||
@@ -104,9 +104,9 @@ void YmodemFileReceive::readTimeOut(const boost::system::error_code& e)
|
|||||||
|
|
||||||
void YmodemFileReceive::writeTimeOut(const boost::system::error_code& e)
|
void YmodemFileReceive::writeTimeOut(const boost::system::error_code& e)
|
||||||
{
|
{
|
||||||
writeTimer.cancel();
|
// writeTimer.cancel();
|
||||||
//serialPort->close();
|
//serialPort->close();
|
||||||
receiveStatus(status);
|
// receiveStatus(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ymodem::Code YmodemFileReceive::callback(Status status, uint8_t *buff, uint32_t *len)
|
Ymodem::Code YmodemFileReceive::callback(Status status, uint8_t *buff, uint32_t *len)
|
||||||
|
|||||||
Reference in New Issue
Block a user