altos: Use simpler debounce logic for buttons
authorKeith Packard <keithp@keithp.com>
Sat, 26 Dec 2015 04:46:40 +0000 (20:46 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 20 Apr 2016 03:21:30 +0000 (23:21 -0400)
commitaef5049cf8311927fada922730f85f31c8ddf177
treeeff015922409e59ed960a7a30eb58f37b66af267
parent4c2a7503373c0584de77f9b0e5632a58ab8bbd1f
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>
src/drivers/ao_button.c
src/telelco-v0.2/Makefile
src/telelco-v0.3/Makefile
src/telelcotwo-v0.1/Makefile