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

style updates, removing time.Close

This commit is contained in:
Ben Schwartz 2015-03-31 20:16:06 -05:00
parent 38897e416b
commit 333194b96f

View File

@ -74,13 +74,11 @@ func main() {
// Start main loop // Start main loop
ticker := time.NewTicker(time.Duration(*stepDelay) * time.Millisecond) ticker := time.NewTicker(time.Duration(*stepDelay) * time.Millisecond)
defer timer.Close()
var stepCounter int var stepCounter int
for { for {
select { select {
case <-ticker.C: case <-ticker.C:
// set pins to appropriate values for given position in the sequence // set pins to appropriate values for given position in the sequence
for i, pin := range stepPins { for i, pin := range stepPins {
if seq[stepCounter][i] != 0 { if seq[stepCounter][i] != 0 {