LennartHennigs / Button2

Arduino/ESP button library that provides callback functions to track single, double, triple and long clicks. It also takes care of debouncing.
MIT License
487 stars 81 forks source link

Long click retriggerable stopped working in a recent update. #49

Closed tfabris closed 1 year ago

tfabris commented 1 year ago

I don't know which version had this happen, but something changed in the long click and retriggerable features recently, and now my "held down" buttons don't work, though they worked with an earlier version of the library. Can you check to see if any of your recent updates caused this? Is this a known issue?

Attached is my code. Perhaps you can glean something from it?

Master Bedroom LEDs.zip

LennartHennigs commented 1 year ago

Hey, thanks for reaching out. Yes, I introduced a bug in 2.2.1. please check the latest version 2.2.2 this should solve it. Cheers.

tfabris commented 1 year ago

Awesome, thanks so much. I will try it tomorrow when I return home. Timing wise, it looks like you were releasing the bugfixed version right around the time I was trying to diagnose the issue and post the bug. :-)

Super useful library, thanks so much.

LennartHennigs commented 1 year ago

Thank you. You are welcome. Please let me know, if it solves the issue. But it should.🤞

tfabris commented 1 year ago

Yep, version 2.2.2 solved the issue. Thanks!