1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Reduce standard deviation of flash logging execution time by 80%

This commit is contained in:
Nicholas Sherlock 2015-06-30 17:43:49 +12:00
parent bf18f212d9
commit 4f860dd6f1
2 changed files with 8 additions and 12 deletions

View file

@ -1215,6 +1215,9 @@ static void blackboxLogIteration()
#endif
}
//Flush every iteration so that our runtime variance is minimized
blackboxDeviceFlush();
blackboxSlowFrameIterationTimer++;
blackboxIteration++;
blackboxPFrameIndex++;