mirror of
https://github.com/kidoman/embd
synced 2025-07-03 11:57:38 +02:00
style updates, removing time.Close
This commit is contained in:
parent
38897e416b
commit
333194b96f
1 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue