altos: Add default button return value from ao_button_get
authorKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:45:01 +0000 (22:45 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:45:01 +0000 (22:45 -0800)
This "can't" happen, but it's not unreasonable to have a default
return value.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_button.c

index 25c0cd5cea66b753813cd566102ce5ba6f7c9da9..cdf073524e1e8f4ffb5f232f255c5ef854de28fe 100644 (file)
@@ -59,6 +59,7 @@ _ao_button_get(struct ao_debounce *debounce)
        case 4: return ao_button_value(4);
 #endif
        }
        case 4: return ao_button_value(4);
 #endif
        }
+       return 0;
 }
 
 static void
 }
 
 static void