mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 07:50:34 +08:00
Remove some timer reload events; these seem to break PWM output on IO.
This commit is contained in:
@@ -169,9 +169,6 @@ pwm_channel_init(unsigned channel)
|
||||
rCCER(timer) |= GTIM_CCER_CC4E;
|
||||
break;
|
||||
}
|
||||
|
||||
/* generate an update event; reloads the counter and all registers */
|
||||
rEGR(timer) = GTIM_EGR_UG;
|
||||
}
|
||||
|
||||
int
|
||||
@@ -212,9 +209,6 @@ up_pwm_servo_set(unsigned channel, servo_position_t value)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* generate an update event; reloads the counter and all registers */
|
||||
rEGR(timer) = GTIM_EGR_UG;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user