Skip to content

Commit

Permalink
Fix for analog (quick changes lag)
Browse files Browse the repository at this point in the history
This fixes analog lag issue.
  • Loading branch information
kittuov authored and deadprogram committed Feb 25, 2016
1 parent 41d80f9 commit 2c5f1bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platforms/joystick/joystick_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ func (j *JoystickDriver) Start() (errs []error) {

go func() {
for {
event := j.poll()
if event != nil {
for event := j.poll(); event != nil; event = j.poll() {
if err = j.handleEvent(event); err != nil {
gobot.Publish(j.Event("error"), err)
}
Expand Down

0 comments on commit 2c5f1bc

Please sign in to comment.