diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-29 12:46:20 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-29 12:46:20 +0200 |
commit | 1725069c188fddce7e22026ca77edd5ea980b54a (patch) | |
tree | e3ea30d53a8ea2934bcf6393d7009b42ec3870f1 /nuttx/configs | |
parent | fb691c9ff196599fbc12a776a1ea94ffc14967d4 (diff) | |
parent | 4933d1dbbd8146ec548168fb9b855009107078ca (diff) | |
download | px4-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.c | 2 |
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; |