Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static variable "pending" in DebounceEvent gets mixed between instances #17

Closed
xoseperez opened this issue Dec 25, 2016 · 1 comment
Closed

Comments

@xoseperez
Copy link
Owner

As reported by Gianluca Barbaro:

There's a logic flaw in DebounceEvent::loop(): we declare a static bool pending variable, but it gets mixed up if we have more than 1 button.

@xoseperez
Copy link
Owner Author

Fix #17. Moved static variable 'pending' to class variable '_clicked'

xoseperez pushed a commit that referenced this issue Jan 24, 2018
Added optional gamma correction for light

Approved-by: Xose Pérez <xose.perez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant