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 10e1d0f..8ae26ec 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();