mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Update pwm_output_hw.c (#14385)
This commit is contained in:
parent
f612b28a86
commit
0136c5a54c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue