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:
parent
38897e416b
commit
333194b96f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user