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:
commit
0dde6822c2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue