1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Remove duplication in motor enable/disable

This commit is contained in:
Martin Budden 2017-07-04 20:44:33 +01:00
parent ea896e5445
commit 3cdbaaf14d
6 changed files with 8 additions and 16 deletions

View file

@ -137,8 +137,6 @@
void targetPreInit(void);
#endif
extern uint8_t motorControlEnable;
#ifdef SOFTSERIAL_LOOPBACK
serialPort_t *loopbackPort;
#endif
@ -709,7 +707,7 @@ void init(void)
// Latch active features AGAIN since some may be modified by init().
latchActiveFeatures();
motorControlEnable = true;
pwmEnableMotors();
#ifdef USE_OSD_SLAVE
osdSlaveTasksInit();