mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 09:13:32 +08:00
Use the update rate parameter provided and not the default.
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#/bin/sh
|
||||
|
||||
git fetch upstream
|
||||
# Fetches any new changes from the original repo
|
||||
|
||||
git merge upstream/master
|
||||
# Merges any changes fetched into your working files
|
||||
|
||||
@@ -179,7 +179,7 @@ static void
|
||||
pwm_timer_set_rate(unsigned timer, unsigned rate)
|
||||
{
|
||||
/* configure the timer to update at the desired rate */
|
||||
rARR(timer) = 1000000 / pwm_update_rate;
|
||||
rARR(timer) = 1000000 / rate;
|
||||
|
||||
/* generate an update event; reloads the counter and all registers */
|
||||
rEGR(timer) = GTIM_EGR_UG;
|
||||
|
||||
Reference in New Issue
Block a user