Permalink
Browse files

Use stopmovement function rather than duplicating code

  • Loading branch information...
1 parent 0e5a149 commit 309d1ea6770582d1699beebdf8d8b75016e0f2d8 @jonmarkgo committed Jun 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 twiliobot.ino
View
@@ -32,8 +32,7 @@ void setup() {
rightservo.attach(rightservoPin);
leftservo.attach(leftservoPin);
- rightservo.write(rightStopPos);
- leftservo.write(leftStopPos);
+ stopMovement();
pinMode(sonarPin, INPUT);
pinMode(ledPin, OUTPUT);
}

0 comments on commit 309d1ea

Please sign in to comment.