1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Use motorCount from mixer.c instead of determine motor count again

This commit is contained in:
Bas Delfos 2016-11-17 22:02:51 +01:00
parent 0df4c63132
commit bc1109c546
3 changed files with 9 additions and 10 deletions

View file

@ -240,6 +240,10 @@ static motorMixer_t *customMixers;
static uint16_t disarmMotorOutput, minMotorOutputNormal, maxMotorOutputNormal, deadbandMotor3dHigh, deadbandMotor3dLow;
static float rcCommandThrottleRange;
uint8_t getMotorCount() {
return motorCount;
}
bool isMotorProtocolDshot(void) {
#ifdef USE_DSHOT
if (motorConfig->motorPwmProtocol == PWM_TYPE_DSHOT150 || motorConfig->motorPwmProtocol == PWM_TYPE_DSHOT300 || motorConfig->motorPwmProtocol == PWM_TYPE_DSHOT600)