aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/poll/main.go2
-rw-r--r--cmd/runcmd/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/poll/main.go b/cmd/poll/main.go
index 6e2dd10..95be209 100644
--- a/cmd/poll/main.go
+++ b/cmd/poll/main.go
@@ -14,7 +14,7 @@ func main() {
}
defer dev.Close()
- for state := range redbutton.Poll(dev) {
+ for state := range redbutton.Poll(dev, redbutton.PollInterval) {
fmt.Println(state)
}
}
diff --git a/cmd/runcmd/main.go b/cmd/runcmd/main.go
index e01bb04..7832742 100644
--- a/cmd/runcmd/main.go
+++ b/cmd/runcmd/main.go
@@ -54,7 +54,7 @@ func main() {
}
defer dev.Close()
- state := redbutton.Poll(dev)
+ state := redbutton.Poll(dev, redbutton.PollInterval)
for stateFn := Init; stateFn != nil; {
stateFn = stateFn(<-state)
}