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

Update pwm_output_hw.c (#14385)

This commit is contained in:
hamza özkan 2025-05-13 21:30:14 +03:00 committed by GitHub
parent f612b28a86
commit 0136c5a54c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ static void pwmWriteStandard(uint8_t index, float value)
static void pwmShutdownPulsesForAllMotors(void)
{
for (int index = 0; pwmMotorCount; index++) {
for (int index = 0; index < pwmMotorCount; index++) {
// Set the compare register to 0, which stops the output pulsing if the timer overflows
if (pwmMotors[index].channel.ccr) {
*pwmMotors[index].channel.ccr = 0;
@ -135,7 +135,7 @@ static void pwmCompleteMotorUpdate(void)
return;
}
for (int index = 0; pwmMotorCount; index++) {
for (int index = 0; index < pwmMotorCount; index++) {
if (pwmMotors[index].forceOverflow) {
timerForceOverflow(pwmMotors[index].channel.tim);
}