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

Fixed dispatch initialisation for persistent statistics.

This commit is contained in:
mikeller 2019-06-23 19:56:45 +12:00
parent 9abf63a0b0
commit c6c4c3adf9
4 changed files with 13 additions and 3 deletions

View file

@ -88,6 +88,7 @@
#include "fc/init.h"
#include "fc/rc_controls.h"
#include "fc/runtime_config.h"
#include "fc/stats.h"
#include "fc/tasks.h"
#include "flight/failsafe.h"
@ -932,10 +933,13 @@ void init(void)
pwmEnableMotors();
#endif
#ifdef USE_PERSISTENT_STATS
statsInit();
#endif
setArmingDisabled(ARMING_DISABLED_BOOT_GRACE_TIME);
fcTasksInit();
systemState |= SYSTEM_STATE_READY;
}