Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Minor code tidyup
Browse files Browse the repository at this point in the history
  • Loading branch information
thenickdude committed May 7, 2015
1 parent 3a7143c commit 7b4acf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,15 +519,15 @@ 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)
frame[i] += previous[i];

i++;
} else {
switch (private->frameDefs[frameType].encoding[i]) {
switch (encoding[i]) {
case FLIGHT_LOG_FIELD_ENCODING_SIGNED_VB:
value = (uint32_t) streamReadSignedVB(stream);
break;
Expand Down

0 comments on commit 7b4acf1

Please sign in to comment.