evert-arias / EasyButton

Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
https://easybtn.earias.me
MIT License
447 stars 62 forks source link

fix timeout reset #47

Closed ssk8 closed 3 years ago

ssk8 commented 3 years ago

original code fails on double click fail after odd single click

evert-arias commented 3 years ago

Hi @ssk8 I have managed to reproduce the reset timeout issue and undoubtedly your solution solves the problem. Very nice catch, thanks for pointing that out.