From: Keith Packard Date: Sat, 21 Dec 2013 06:45:01 +0000 (-0800) Subject: altos: Add default button return value from ao_button_get X-Git-Tag: 1.3.1~40 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=1406a5b0721a135913a9801e9eea9e91f0a536b4;ds=sidebyside 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 --- 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