1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00
- cosmetic changes from code review
- not enabling stats on any F3 (not enough flash)
This commit is contained in:
Krzysztof Matula 2019-04-07 12:07:30 +02:00
parent fea686f2b5
commit eb99c7e0d1
7 changed files with 23 additions and 26 deletions

View file

@ -371,7 +371,9 @@ void disarm(void)
#endif
flipOverAfterCrashActive = false;
#ifdef USE_PERSISTENT_STATS
statsOnDisarm();
#endif
// if ARMING_DISABLED_RUNAWAY_TAKEOFF is set then we want to play it's beep pattern instead
if (!(getArmingDisableFlags() & ARMING_DISABLED_RUNAWAY_TAKEOFF)) {
@ -486,7 +488,10 @@ void tryArm(void)
#else
beeper(BEEPER_ARMING);
#endif
#ifdef USE_PERSISTENT_STATS
statsOnArm();
#endif
#ifdef USE_RUNAWAY_TAKEOFF
runawayTakeoffDeactivateUs = 0;
@ -978,8 +983,10 @@ bool processRx(timeUs_t currentTimeUs)
pidSetAntiGravityState(IS_RC_MODE_ACTIVE(BOXANTIGRAVITY) || featureIsEnabled(FEATURE_ANTI_GRAVITY));
#ifdef USE_PERSISTENT_STATS
/* allow the stats collector to do periodic tasks */
statsOnLoop();
#endif
return true;
}