aboutsummaryrefslogtreecommitdiff
path: root/src/ootx_decoder.c
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-14 21:26:26 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-14 21:26:26 -0500
commitf736678ae0df00f7b5850043d9327da44b068c47 (patch)
tree9bc783b624576fe3034b866d5b79243d93cd5692 /src/ootx_decoder.c
parent6dbd0f2062f5f519c9b6762874c2e940b0639cbd (diff)
downloadlibsurvive-f736678ae0df00f7b5850043d9327da44b068c47.tar.gz
libsurvive-f736678ae0df00f7b5850043d9327da44b068c47.tar.bz2
use 0 and not buffer offset
Diffstat (limited to 'src/ootx_decoder.c')
-rw-r--r--src/ootx_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ootx_decoder.c b/src/ootx_decoder.c
index b1815d7..894012a 100644
--- a/src/ootx_decoder.c
+++ b/src/ootx_decoder.c
@@ -55,7 +55,7 @@ uint8_t ootx_detect_preamble(ootx_decoder_context *ctx, uint8_t dbit) {
void ootx_reset_buffer(ootx_decoder_context *ctx) {
ctx->buf_offset = 0;
- ctx->buffer[ctx->buf_offset] = 0;
+ ctx->buffer[0] = 0;
ctx->bits_written = 0;
*(ctx->payload_size) = 0;
}