altos: Use simpler debounce logic for buttons telelaunchtwo
authorKeith Packard <keithp@keithp.com>
Sat, 26 Dec 2015 04:46:40 +0000 (20:46 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 26 Dec 2015 04:46:40 +0000 (20:46 -0800)
commitd312808f20e9358e1eca94dc7f747928d4ee85b1
tree1ff4edf482ce28464267e8a7f899d4a29dc0f804
parent3eca6e02e022e184e98d945368d0a8cf22f54049
altos: Use simpler debounce logic for buttons

Instead of waiting for a while after the transition to decide if it
has stuck, signal the event right away and then ignore other
transitions for the debounce interval.

This seems to work just as reliably, but has the benefit of
eliminating button latency at press time.

Signed-off-by: Keith Packard <keithp@keithp.com>
pdclib
src/drivers/ao_button.c
src/telelco-v0.2/Makefile
src/telelco-v0.3/Makefile
src/telelcotwo-v0.1/Makefile