First usable version
This commit is contained in:
11
Ymodem.cpp
11
Ymodem.cpp
@@ -29,6 +29,11 @@
|
||||
/* Header includes -----------------------------------------------------------*/
|
||||
#include "Ymodem.h"
|
||||
#include <string.h>
|
||||
#include <boost/log/core.hpp>
|
||||
#include <boost/log/common.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
/* Macro definitions ---------------------------------------------------------*/
|
||||
/* Type definitions ----------------------------------------------------------*/
|
||||
@@ -130,6 +135,7 @@ void Ymodem::receive()
|
||||
{
|
||||
case StageNone:
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(debug) << "receiveStageNone";
|
||||
receiveStageNone();
|
||||
|
||||
break;
|
||||
@@ -137,6 +143,8 @@ void Ymodem::receive()
|
||||
|
||||
case StageEstablishing:
|
||||
{
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug) << "receiveStageEstablishing";
|
||||
receiveStageEstablishing();
|
||||
|
||||
break;
|
||||
@@ -144,6 +152,7 @@ void Ymodem::receive()
|
||||
|
||||
case StageEstablished:
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(debug) << "receiveStageEstablished";
|
||||
receiveStageEstablished();
|
||||
|
||||
break;
|
||||
@@ -151,6 +160,7 @@ void Ymodem::receive()
|
||||
|
||||
case StageTransmitting:
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(debug) << "receiveStageTransmitting";
|
||||
receiveStageTransmitting();
|
||||
|
||||
break;
|
||||
@@ -158,6 +168,7 @@ void Ymodem::receive()
|
||||
|
||||
case StageFinishing:
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(debug) << "receiveStageFinishing";
|
||||
receiveStageFinishing();
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user