diff options
author | Keith Packard <keithp@keithp.com> | 2013-12-20 22:45:01 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-20 22:45:01 -0800 |
commit | 1406a5b0721a135913a9801e9eea9e91f0a536b4 (patch) | |
tree | 360399bea8f4b1bbd114389351abcc807aba77d5 | |
parent | 316d898715746a379068ac8511692bdb9da14b39 (diff) |
altos: Add default button return value from ao_button_get
This "can't" happen, but it's not unreasonable to have a default
return value.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/drivers/ao_button.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_button.c b/src/drivers/ao_button.c index 25c0cd5c..cdf07352 100644 --- a/src/drivers/ao_button.c +++ b/src/drivers/ao_button.c @@ -59,6 +59,7 @@ _ao_button_get(struct ao_debounce *debounce) case 4: return ao_button_value(4); #endif } + return 0; } static void |