1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

Fix Fast PWM synced update for non ONESHOT125

This commit is contained in:
borisbstyle 2016-06-02 10:38:33 +02:00
parent bb880e68d3
commit 77dc19e9d9
3 changed files with 5 additions and 5 deletions

View file

@ -633,7 +633,7 @@ void writeServos(void)
}
#endif
void writeMotors(uint8_t unsyncedPwm)
void writeMotors(uint8_t fastPwmProtocol, uint8_t unsyncedPwm)
{
uint8_t i;
@ -641,7 +641,7 @@ void writeMotors(uint8_t unsyncedPwm)
pwmWriteMotor(i, motor[i]);
if (feature(FEATURE_ONESHOT125) && !unsyncedPwm) {
if (fastPwmProtocol && !unsyncedPwm) {
pwmCompleteOneshotMotorUpdate(motorCount);
}
}
@ -653,7 +653,7 @@ void writeAllMotors(int16_t mc)
// Sends commands to all motors
for (i = 0; i < motorCount; i++)
motor[i] = mc;
writeMotors(1);
writeMotors(1,1);
}
void stopMotors(void)