altos: Add 'ao_button_get' to button driver
[fw/altos] / src / drivers / ao_button.c
index 1be788a0c98b040b0c4dc0f211c29640cedb6927..725ac45a762334a6bdbf5a303d1bb028200081e6 100644 (file)
@@ -93,6 +93,12 @@ _ao_button_init(uint8_t b)
 
 }
 
+uint8_t
+ao_button_get(uint8_t b)
+{
+       return ao_button_state[b].value;
+}
+
 static void
 ao_button_isr(void)
 {