... | ... |
@@ -219,7 +219,7 @@ int adc_decompress(adc_stream *strm) |
219 | 219 |
if (strm->curr >= (strm->buffer + ADC_BUFF_SIZE)) { |
220 | 220 |
strm->curr = strm->buffer; |
221 | 221 |
} |
222 |
- if (strm->curr > (strm->buffer + strm->offset)) { |
|
222 |
+ if (strm->curr >= (strm->buffer + strm->offset)) { |
|
223 | 223 |
bData = *(uint8_t *)(strm->curr - strm->offset); |
224 | 224 |
} |
225 | 225 |
else { |