removed part which is now not necessary anymore
This commit is contained in:
parent
7c7a8a5df7
commit
d36d849e69
@ -8,14 +8,6 @@ DleEncoder::~DleEncoder() {}
|
||||
ReturnValue_t DleEncoder::encode(const uint8_t* sourceStream,
|
||||
size_t sourceLen, uint8_t* destStream, size_t maxDestLen,
|
||||
size_t* encodedLen, bool addStxEtx) {
|
||||
if (addStxEtx) {
|
||||
size_t currentIdx = 0;
|
||||
if(not escapeStxEtx) {
|
||||
destStream[currentIdx++] = DLE_CHAR;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(escapeStxEtx) {
|
||||
return encodeStreamEscaped(sourceStream, sourceLen,
|
||||
destStream, maxDestLen, encodedLen, addStxEtx);
|
||||
|
Loading…
Reference in New Issue
Block a user