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:
parent
7d215e8f84
commit
7061ef0706
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue