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:
parent
ea896e5445
commit
3cdbaaf14d
6 changed files with 8 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue