1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fix ESC protocol startup after rearranging MSP/OSD/CMS init

Fixes double ESC initialization.
This commit is contained in:
Bruce Luckcuck 2019-12-09 16:59:29 -05:00
parent 7d215e8f84
commit 7061ef0706

View file

@ -904,11 +904,6 @@ void init(void)
rcdeviceInit();
#endif // USE_RCDEVICE
#ifdef USE_MOTOR
motorPostInit();
motorEnable();
#endif
#ifdef USE_PERSISTENT_STATS
statsInit();
#endif
@ -1002,6 +997,11 @@ void init(void)
setArmingDisabled(ARMING_DISABLED_BOOT_GRACE_TIME);
#ifdef USE_MOTOR
motorPostInit();
motorEnable();
#endif
tasksInit();
systemState |= SYSTEM_STATE_READY;