Skip to content
Snippets Groups Projects
Commit 8b876241 authored by AnHardt's avatar AnHardt Committed by Richard Wackerbarth
Browse files

Some more servo code tweaks

Just set up the pin. Don't move to a random position.

Simplify servo::move()
* servo::move() does not need the pin parameter - The pin is set during servo_init() with attach().
* servo::move() does not need a return value.

SERVO_LEVELING is the wrong condition to deactivate the servos.

Remove some temporary (Servo *) variables.
SanityCheck for the servo indexes.
parent b116c096
Branches
Tags
Loading
Showing
with 113 additions and 50 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment