aboutsummaryrefslogtreecommitdiff
path: root/poll/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'poll/main.go')
-rw-r--r--poll/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll/main.go b/poll/main.go
index 135215f..bb19921 100644
--- a/poll/main.go
+++ b/poll/main.go
@@ -14,7 +14,7 @@ func main() {
}
defer dev.Close()
- state := redbutton.PollState(dev)
+ state := redbutton.Poll(dev)
for {
fmt.Println(<-state)
}