1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Merge pull request #1025 from martinbudden/bf_servos

Moved #defines out of mixer function definitions
This commit is contained in:
borisbstyle 2016-09-15 01:25:47 +02:00 committed by GitHub
commit 7122689038
4 changed files with 40 additions and 48 deletions

View file

@ -240,10 +240,9 @@ void init(void)
serialInit(&masterConfig.serialConfig, feature(FEATURE_SOFTSERIAL), SERIAL_PORT_NONE);
#endif
#ifdef USE_SERVOS
mixerInit(masterConfig.mixerMode, masterConfig.customMotorMixer, masterConfig.customServoMixer);
#else
mixerInit(masterConfig.mixerMode, masterConfig.customMotorMixer);
#ifdef USE_SERVOS
servoInit(masterConfig.customServoMixer);
#endif
drv_pwm_config_t pwm_params;