diff --git a/examples/servo.rs b/examples/servo.rs index 039fdb2c..83c44ab1 100644 --- a/examples/servo.rs +++ b/examples/servo.rs @@ -16,12 +16,12 @@ fn main() { writeln!(Console::writer(), "The driver could not be found").unwrap(); return; } - let servo_count = Servo::servo_count().unwrap(); + let count = Servo::count().unwrap(); writeln!( Console::writer(), "The number of available servomotors is {:?}", - servo_count + count ) .unwrap();