From aa3b01dd78ef2f9174152e58bd75a3b3d9de79b3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 7 Sep 2017 12:00:42 +0200 Subject: PollInterval --- cmd/runcmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/runcmd') 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) } -- cgit v1.2.3