new shared ring buffer

This commit is contained in:
muellerr committed 2020-07-09 14:26:15 +02:00
1 parent 64c290ffe4
commit 6f50356964
11 files changed
+216 -86

No files matched your search

+1 -2
View File
@@ -81,8 +81,7 @@ ReturnValue_t DleEncoder::decode(const uint8_t *sourceStream,
while ((encodedIndex < sourceStreamLen) && (decodedIndex < maxDestStreamlen)
&& (sourceStream[encodedIndex] != ETX)
&& (sourceStream[encodedIndex] != STX))
{
&& (sourceStream[encodedIndex] != STX)) {
if (sourceStream[encodedIndex] == DLE) {
nextByte = sourceStream[encodedIndex + 1];
// The next byte is a DLE character that was escaped by another