preserve STX char

This commit is contained in:
Robin Müller 2021-10-04 14:38:10 +02:00
parent afb472996c
commit 2439613f21

View File

@ -198,7 +198,7 @@ ReturnValue_t DleEncoder::decodeStreamEscaped(const uint8_t *sourceStream, size_
break;
}
case(STX_CHAR): {
*readLen = ++encodedIndex;
*readLen = encodedIndex;
return DECODING_ERROR;
}
case(ETX_CHAR): {