servo: introduce helper function (no technical effect)
This moves the currenct checks for bad events into a specific function.
Some duplication is removed in that function and log messages are
slightly different, but no technical change is in charge.
I'm going to use pp_servo_bad_event() in later commits.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment