aboutsummaryrefslogtreecommitdiff
path: root/redbutton.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-09-06 21:04:35 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-09-06 21:04:35 +0200
commit77a08f86e55a7af5683a628a4d2304d8f2583896 (patch)
tree63f0e3bc4a38a3ea57ce8992e9229e50ba877aca /redbutton.go
parentcf92c9d731dc5244ec34a32524dc71046a1cb777 (diff)
...
Diffstat (limited to 'redbutton.go')
-rw-r--r--redbutton.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/redbutton.go b/redbutton.go
index 507e720..aa26d6e 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
+ buf[0] = 0x01 // 0x08 ?
buf[7] = 0x02
if _, err := dev.Write(buf); err != nil {