Skip to content

Conversation

deshipu
Copy link

@deshipu deshipu commented Oct 21, 2017

If a soft reset happens while the gamepad module is scanning for button
presses, there is a moment when the pins get de-initialized, but the
gamepad module is still trying to read them, which ends in a crash.
We can avoid it by disabling scanning on reset.

If a soft reset happens while the gamepad module is scanning for button
presses, there is a moment when the pins get de-initialized, but the
gamepad module is still trying to read them, which ends in a crash.
We can avoid it by disabling scanning on reset.
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Would you say that we should spin a new release? How often do you think this happens? I can't say I've seen this crash myself.

@dhalbert dhalbert merged commit 9bcc105 into adafruit:2.x Oct 22, 2017
@deshipu
Copy link
Author

deshipu commented Oct 22, 2017

It happens every time you use the GamePad class and do a soft reset. Since that is new, nobody has been using it yet.

@dhalbert
Copy link
Collaborator

I'll put a warning in the release notes for now, and say it'll be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants