aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-09-07 11:15:49 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-09-07 11:15:49 +0200
commit859c0a87126050237648a3c77b77bee9575e876e (patch)
treedc0afce4833d7cae9713feda5bc1861745254800
parentbf7ed38745d7419608b8d33c064ee1e76c5aa45c (diff)
...
-rw-r--r--redbutton.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/redbutton.go b/redbutton.go
index aa26d6e..507e720 100644
--- a/redbutton.go
+++ b/redbutton.go
@@ -25,7 +25,7 @@ const (
func State(dev *hid.Device) (Button, bool) {
buf := make([]byte, 8)
- buf[0] = 0x01 // 0x08 ?
+ buf[0] = 0x01
buf[7] = 0x02
if _, err := dev.Write(buf); err != nil {