1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +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

@ -169,9 +169,7 @@ static uint8_t loadDmaBufferProshot(motorDmaOutput_t *const motor, uint16_t pack
void pwmWriteMotor(uint8_t index, float value)
{
if (pwmMotorsEnabled) {
pwmWrite(index, value);
}
pwmWrite(index, value);
}
void pwmShutdownPulsesForAllMotors(uint8_t motorCount)