Fix ESC protocol startup after rearranging MSP/OSD/CMS init (#9277)

Fix ESC protocol startup after rearranging MSP/OSD/CMS init
This commit is contained in:
Michael Keller 2019-12-11 09:37:12 +13:00 committed by GitHub
commit 0dde6822c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

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;