Skip to content

Commit

Permalink
Improve documentation of go.hid fork
Browse files Browse the repository at this point in the history
  • Loading branch information
riking committed Jan 16, 2018
1 parent 73f7c65 commit 7fa49da
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 48 deletions.
4 changes: 2 additions & 2 deletions prog4/joycon/bluetooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@ func (jc *joyconBluetooth) reader() {
return
}
if hidHandle == nil {
time.Sleep(15 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
continue
}

n, err := hidHandle.Read(buffer[:])
n, err := hidHandle.ReadTimeout(buffer[:], 4)
if err != nil {
jc.onReadError(err)
return
Expand Down
108 changes: 84 additions & 24 deletions vendor/github.com/GeertJohan/go.hid/hid.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions vendor/github.com/GeertJohan/go.hid/hid_common.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7fa49da

Please sign in to comment.