1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

samples: servobbb cleanup

This commit is contained in:
Karan Misra 2014-04-06 04:09:40 +05:30
parent 18ea690072
commit d16c010c3d

View File

@ -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
}
}