From d16c010c3d9dadd85c58bdccf50e54b13f66554d Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Sun, 6 Apr 2014 04:09:40 +0530 Subject: [PATCH] samples: servobbb cleanup --- samples/servobbb.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/servobbb.go b/samples/servobbb.go index 6a69d3f..4e190cc 100644 --- a/samples/servobbb.go +++ b/samples/servobbb.go @@ -26,8 +26,8 @@ func main() { servo := servo.New(pwm) - c := make(chan os.Signal, 1) - signal.Notify(c, os.Interrupt, os.Kill) + quit := make(chan os.Signal, 1) + signal.Notify(quit, os.Interrupt, os.Kill) turnTimer := time.Tick(500 * time.Millisecond) left := true @@ -47,7 +47,7 @@ func main() { case false: servo.SetAngle(110) } - case <-c: + case <-quit: return } }