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:
parent
0df4c63132
commit
bc1109c546
3 changed files with 9 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue