altos: Tim Van Milligan suggestion for µP -- delay before showing last flight
authorKeith Packard <keithp@keithp.com>
Wed, 12 Dec 2012 07:43:30 +0000 (23:43 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Dec 2012 07:43:30 +0000 (23:43 -0800)
This gives the user time to move their finger out of the way of the LED.

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

index 10e1d0f9f3246d7a5e8aba35a60605d44a8b8ef3..8ae26ec110b71458c65dfae59fedc09302cd0d8c 100644 (file)
@@ -110,6 +110,8 @@ main(void)
 #endif
        ao_restore_flight();
        ao_compute_height();
+       /* Give the person a second to get their finger out of the way */
+       ao_delay(AO_MS_TO_TICKS(1000));
        ao_report_altitude();
        
        ao_spi_init();