Skip to content

Commit

Permalink
Merge pull request #59 from iNavFlight/reinit_current_integator
Browse files Browse the repository at this point in the history
initialise energy accumulator for each log segment (#58)
  • Loading branch information
stronnag authored Oct 8, 2022
2 parents c7893c3 + 33aed5b commit a243c9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blackbox_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,8 @@ void resetParseState() {
lastFrameTime = -1;

seriesStats_init(&looptimeStats);
currentMeterInit(&currentMeterMeasured);
currentMeterInit(&currentMeterVirtual);
}

int decodeFlightLog(flightLog_t *log, const char *filename, int logIndex)
Expand Down

0 comments on commit a243c9a

Please sign in to comment.