servo: calculate mean path delay before using it
The code was using "mean path delay" before calculating it. Which means
that is used wrong values (likely 0) the first time and the previous
value at each successive iteration.
This commit moves calculation of "mpd" before code that uses it. The
calculation itself is not changed.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment