1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 04:40:04 +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
ticker := time.NewTicker(time.Duration(*stepDelay) * time.Millisecond)
defer timer.Close()
var stepCounter int
for {
select {
case <-ticker.C:
// set pins to appropriate values for given position in the sequence
for i, pin := range stepPins {
if seq[stepCounter][i] != 0 {