preserve STX char

This commit is contained in:
Robin Müller 2021-10-04 14:38:10 +02:00
parent f67567d0b5
commit d81ed334d8
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

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): {