From 37163011fc752e40ee712d4c945c8393538f2708 Mon Sep 17 00:00:00 2001 From: Simon Wilks Date: Mon, 24 Sep 2012 23:36:21 +0200 Subject: Use the update rate parameter provided and not the default. --- nuttx/configs/px4fmu/src/up_pwm_servo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/configs/px4fmu/src/up_pwm_servo.c') 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; -- cgit v1.2.3