assigned read len for decoding error
This commit is contained in:
parent
9385f90241
commit
15fd30b23f
@ -112,6 +112,7 @@ ReturnValue_t DleEncoder::decode(const uint8_t *sourceStream,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sourceStream[encodedIndex] != ETX_CHAR) {
|
if (sourceStream[encodedIndex] != ETX_CHAR) {
|
||||||
|
*readLen = ++encodedIndex;
|
||||||
return DECODING_ERROR;
|
return DECODING_ERROR;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user