Random
This commit is contained in:
20
XModem.cpp
20
XModem.cpp
@@ -21,6 +21,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "XModem.h"
|
||||
#include "TimeoutSerial.h"
|
||||
#ifdef UTEST
|
||||
#include "CppUTestExt/MockSupport.h"
|
||||
#endif
|
||||
@@ -35,24 +36,17 @@ const int XModem::receiveDelay=7000;
|
||||
const int XModem::rcvRetryLimit = 10;
|
||||
|
||||
|
||||
|
||||
|
||||
XModem::XModem(int (*recvChar)(int msDelay),
|
||||
void (*sendData)(const char *data, int len))
|
||||
XModem::XModem(TimeoutSerial *serial)
|
||||
{
|
||||
this->sendData = sendData;
|
||||
this->recvChar = recvChar;
|
||||
this->dataHandler = NULL;
|
||||
|
||||
this->serial = serial;
|
||||
this->dataHandler = NULL;
|
||||
}
|
||||
XModem::XModem(int (*recvChar)(int msDelay),
|
||||
void (*sendData)(const char *data, int len),
|
||||
|
||||
XModem::XModem(TimeoutSerial *serial,
|
||||
bool (*dataHandler)(unsigned long number, char *buffer, int len))
|
||||
{
|
||||
this->sendData = sendData;
|
||||
this->recvChar = recvChar;
|
||||
this->serial = serial;
|
||||
this->dataHandler = dataHandler;
|
||||
|
||||
}
|
||||
|
||||
bool XModem::dataAvail(int delay)
|
||||
|
||||
Reference in New Issue
Block a user