aboutsummaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-29 12:46:20 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-29 12:46:20 +0200
commit1725069c188fddce7e22026ca77edd5ea980b54a (patch)
treee3ea30d53a8ea2934bcf6393d7009b42ec3870f1 /nuttx/configs
parentfb691c9ff196599fbc12a776a1ea94ffc14967d4 (diff)
parent4933d1dbbd8146ec548168fb9b855009107078ca (diff)
downloadpx4-firmware-1725069c188fddce7e22026ca77edd5ea980b54a.tar.gz
px4-firmware-1725069c188fddce7e22026ca77edd5ea980b54a.tar.bz2
px4-firmware-1725069c188fddce7e22026ca77edd5ea980b54a.zip
Merge branch 'update_rate' of https://github.com/sjwilks/Firmware into ardrone
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/px4fmu/src/up_pwm_servo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/configs/px4fmu/src/up_pwm_servo.c b/nuttx/configs/px4fmu/src/up_pwm_servo.c
index adb9b5030..d278da55c 100644
--- a/nuttx/configs/px4fmu/src/up_pwm_servo.c
+++ b/nuttx/configs/px4fmu/src/up_pwm_servo.c
@@ -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;