From 7b4acf10cab9f0d61a9e2821a41ab2cd8d716c60 Mon Sep 17 00:00:00 2001 From: Nicholas Sherlock Date: Fri, 8 May 2015 10:13:25 +1200 Subject: [PATCH] Minor code tidyup --- src/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.c b/src/parser.c index 6c4241c..b955114 100644 --- a/src/parser.c +++ b/src/parser.c @@ -519,7 +519,7 @@ static void parseFrame(flightLog_t *log, mmapStream_t *stream, uint8_t frameType uint32_t value; uint32_t values[8]; - if (log->private->frameDefs[frameType].predictor[i] == FLIGHT_LOG_FIELD_PREDICTOR_INC) { + if (predictor[i] == FLIGHT_LOG_FIELD_PREDICTOR_INC) { frame[i] = skippedFrames + 1; if (previous) @@ -527,7 +527,7 @@ static void parseFrame(flightLog_t *log, mmapStream_t *stream, uint8_t frameType i++; } else { - switch (private->frameDefs[frameType].encoding[i]) { + switch (encoding[i]) { case FLIGHT_LOG_FIELD_ENCODING_SIGNED_VB: value = (uint32_t) streamReadSignedVB(stream); break;