assigned read len for decoding error

This commit is contained in:
Robin Müller 2020-08-20 22:31:58 +02:00
parent 9385f90241
commit 15fd30b23f

View File

@ -112,6 +112,7 @@ ReturnValue_t DleEncoder::decode(const uint8_t *sourceStream,
}
if (sourceStream[encodedIndex] != ETX_CHAR) {
*readLen = ++encodedIndex;
return DECODING_ERROR;
}
else {